Basic layout operations: Setting background color

var container = Container( // grey box
  child: Text(
    "Lorem ipsum",
    style: bold24Roboto,
  ),
  width: 320,
  height: 240,
  decoration: BoxDecoration(
    color: Colors.grey[300],
  ),
);

In Flutter, you set the background color using a Container’s decoration property.

Decoration

Decoration: BoxDecoration(
    color: Colors.grey[300],
  )

Basic layout operations: Setting background color — Structure map

Clickable & Draggable!

Basic layout operations: Setting background color — Related pages: