Alguem sabe a diferença entre spaceAround & spacebetween?
Dica para quem esta com muita dificuldade... Estudar Html e Css ajuda rs
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.spaceAround,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Container(color: Colors.red,height: 50, width: 50,),
Container(color:Colors.blue,height: 50,width: 50,),
Container(color: Colors.amber, height: 50, width: 50,)
],
),
Row(
mainAxisAlignment : MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(color: Colors.blue, height: 50, width: 50,),
Container(color:Colors.amber,height: 50,width: 50,),
Container(color:Colors.red,height: 50,width: 50,)
],
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.end,
children: [
Container(color: Colors.red, height: 50, width: 50,),
Container(color:Colors.green,height: 50,width: 50,),
Container(color:Colors.white,height: 50,width: 50,)
],
),
],
),
),
);
}
}