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.

Related concepts

Centering components

Basic layout operations: Centering components — Structure map

Clickable & Draggable!

Basic layout operations: Centering components — Related pages: