Basic layout operations: Styling and aligning text

Var container = Container( // grey box
  child: Text(
    "Lorem ipsum",
    style: TextStyle(
      fontSize: 24,
      fontWeight: FontWeight.w900,
      fontFamily: "Georgia",
    ),
  ),
  width: 320,
  height: 240,
  color: Colors.grey[300],
);

Font style, size, and other text attributes that CSS handles with the font and color properties are individual properties of a TextStyle child of a Text widget.

Related concepts

Basic layout operations: Styling and aligning text — Structure map

Clickable & Draggable!

Basic layout operations: Styling and aligning text — Related pages: