widget cheatsheet Flashcards

1
Q

app/page setup widgets

A

MaterialApp/CupertinoApp & Scaffold/CupertinoPageScaffold

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

layout widgets

A

container & row & column

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what does MaterialApp/CupertinoApp do?

A

-root widget -config global theme -navigation behaviour

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what does Scaffold/CupertinoPageScaffold do?

A

-uses frames for page - background,app bar,navigation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what do containers do?

A

-size -style -take a child

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what does row/column do?

A

-style- for multiple widgets next to each other -wrapped in container

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what does flexible/expanded do?

A

size child widgets of row/column

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what are content containers?

A

stack & card

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what does stack do?

A

-position on z axis -widgets can overlap -position in absolute space

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what does card do?

A

-1 child -defauly styling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what are repeat elements?

A

ListView & GridView & ListTile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what does ListView/GridView do?

A

-like Column() but scrollable - ListView.Builder for optimised item rendering

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what does ListTile do?

A

-Prestyled Container/Row -slots for widgets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what does TextIcon do?

A

-renders icon onto screen -IconButton()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what are user input options?

A

-TextField -RaisedButton -GestureDetectors/InkWell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what does GestureDetector do?

A

wrap any widget w/touch listeners (2xtap, longtap)

17
Q

what does InkWell do?

A

wrap any widget w/touch listeners (2xtap, longtap) +visual ripple effect