widget cheatsheet Flashcards
app/page setup widgets
MaterialApp/CupertinoApp & Scaffold/CupertinoPageScaffold
layout widgets
container & row & column
what does MaterialApp/CupertinoApp do?
-root widget -config global theme -navigation behaviour
what does Scaffold/CupertinoPageScaffold do?
-uses frames for page - background,app bar,navigation
what do containers do?
-size -style -take a child
what does row/column do?
-style- for multiple widgets next to each other -wrapped in container
what does flexible/expanded do?
size child widgets of row/column
what are content containers?
stack & card
what does stack do?
-position on z axis -widgets can overlap -position in absolute space
what does card do?
-1 child -defauly styling
what are repeat elements?
ListView & GridView & ListTile
what does ListView/GridView do?
-like Column() but scrollable - ListView.Builder for optimised item rendering
what does ListTile do?
-Prestyled Container/Row -slots for widgets
what does TextIcon do?
-renders icon onto screen -IconButton()
what are user input options?
-TextField -RaisedButton -GestureDetectors/InkWell