Flutter UI Flashcards

1
Q

Welches Widget ist AppBar übergeordnet?

A

Scaffold

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

Definiere AppBar mit dem Titel ‘Titel’

A

AppBar(title: Text(‘Titel’))

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

Wie wird in der AppBar ein Menu-Icon hinzugefügt?

A

leading: IconButton(
icon: Icon(icon: Icons.menu, sematicLabel: ‘menu’),
onPressed: () {}
)

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

Füge zur AppBar Actions hinzu

A

actions: [
IconButton(icon: Icons.search, semanticLabel: ‘search’,
onPressed: () {print ‘search’}),
]

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