import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
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: Container(
color: Colors.black,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Container(
color: Colors.red,
height: 100,
width: 100,
),
Container(
color: Colors.amber,
height: 100,
width: 100,
),
Container(
color: Colors.amberAccent,
height: 100,
width: 100,
),
],
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Container(
color: Colors.green,
height: 100,
width: 100,
),
Container(
color: Colors.cyan,
height: 100,
width: 100,
),
Container(
color: Colors.blue,
height: 100,
width: 100,
),
],
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Container(
color: Colors.purple,
height: 100,
width: 100,
),
Container(
color: Colors.pink,
height: 100,
width: 100,
),
Container(
color: Colors.white,
height: 100,
width: 100,
),
],
),
],
),
),
);
}
}
Link do meu git :) https://github.com/camarrgo/formacao_flutter/tree/desafio1_widgets_stateless_stateful_imagens_animacoes