class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: Scaffold(
appBar: AppBar(
title: Text('Tarefas'),
foregroundColor: Colors.white,
backgroundColor: Colors.blue,
),
body: Stack(
children: [
Container(color: Color.fromARGB(255, 208, 221, 237),),
ListView(
children: [
Paleta(Colors.white, Color.fromARGB(255, 255, 64, 129), Color.fromARGB(255, 64, 196, 255)),
Paleta(Color.fromARGB(255, 233, 30, 99), Color.fromARGB(255, 156, 39, 176), Color.fromARGB(255, 68, 138, 255)),
Paleta(Color.fromARGB(255, 255, 64, 129), Color.fromARGB(255, 255, 193, 7), Color.fromARGB(255, 3, 169, 244)),
Paleta(Color.fromARGB(255, 224, 64, 251), Colors.white, Color.fromARGB(255, 76, 175, 80)),
],),
],
),
),
);
}
}
class Paleta extends StatelessWidget {
final Color cor1;
final Color cor2;
final Color cor3;
const Paleta(this.cor1, this.cor2, this.cor3,{super.key});
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
child: Row(
children: [
Container(color: cor1, width: 100, height: 150,),
Container(color: cor2, width: 100, height: 150,),
Container(color: cor3, width: 100, height: 150,),
],),
),
);
}
}