-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppBar.dart
39 lines (37 loc) · 933 Bytes
/
AppBar.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
AppBar(
title: Text('My Fancy Dress'),
actions: <Widget>[
IconButton(
icon: Icon(Icons.playlist_play),
tooltip: 'Air it',
onPressed: _airDress,
),
IconButton(
icon: Icon(Icons.playlist_add),
tooltip: 'Restitch it',
onPressed: _restitchDress,
),
IconButton(
icon: Icon(Icons.playlist_add_check),
tooltip: 'Repair it',
onPressed: _repairDress,
),
],
elevation: 0.0, // Hide the shadow
leading: //widget,
centerTitle: //bool,
)
//Usage
return Scaffold(
appBar: new AppBar(
title: new Text('My App Title'),
elevation: 0.0,
),
body: //widget
);
// References
https://docs.flutter.io/flutter/material/AppBar/AppBar.html
https://flutter.io/docs/catalog/samples/AppBar
https://flutter.io/docs/catalog/samples/basic-app-bar
https://flutter.io/docs/catalog/samples/tabbed-app-bar
https://flutter.io/docs/catalog/samples/app-bar-bottom