Skip to content

Latest commit

 

History

History
70 lines (52 loc) · 644 Bytes

README.md

File metadata and controls

70 lines (52 loc) · 644 Bytes

Flutter Cheatsheet

UI Element

Text

  • String
  • textAlign
  • style

Button

  • child
  • onPressed(){}

RaisedButton

  • child
  • elevation
  • onPressed(){}

Image

  • image

Icon

  • Icon
  • size

Layout

Column

  • mainAxisAligment
  • mainAxisSize
  • crossAxisAligment
  • children

Row

  • mainAxisAligment
  • mainAxisSize
  • crossAxisAligment
  • children

Padding

  • padding

Scaffold

  • appBar
  • body
  • floatingActionButton

Stack

  • children

Center

  • child

Align

  • alignment
  • child

Container

  • margin
  • padding
  • alignment
  • width
  • height
  • decoration
  • child

Expanded (with Row/Column)

  • flex