31
loading...
This website collects cookies to deliver better user experience
Center
, Container
, Align
.child
property like, for instance, on the center
widget.Center(
child: Text(
'Hello World 👋',
textDirection: TextDirection.ltr,
),
),
child
; this in return, has another widget in it.children
.Row
, Column
, GridView
.children
property and allow multiple child widgets to be inside them.Center(
child: (Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Icon(Icons.star, color: Colors.green[500]),
Icon(
Icons.star,
color: Colors.green[500],
size: 100,
),
Icon(Icons.star, color: Colors.green[500])
],
)),
);
Not perfect in padding, but it should show you the basic flow of widgets inside widgets.
31