Basic layout operations: Centering components
var container = Container( // grey box
child: Center(
child: Text(
"Lorem ipsum",
style: bold24Roboto,
),
),
width: 320,
height: 240,
color: Colors.grey[300],
); A Center widget centers its child both horizontally and vertically.
Semantic portal