Skip to content

Commit 50e9c22

Browse files
authored
Update appbar-tricks.dart
1 parent 1ad858e commit 50e9c22

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

appbar-tricks.dart

-32
Original file line numberDiff line numberDiff line change
@@ -1,33 +1 @@
1-
//Removing extra padding around appbar leading icon(use titlespacing) -
2-
3-
appBar: AppBar(
4-
leading: Icon(Icons.android),
5-
titleSpacing: 0, //Just add a property called titleSpacing,
6-
title: Text(widget.title),
7-
),
8-
9-
// To increse the leading width of appbar -
10-
11-
appBar: AppBar(
12-
leading: Icon(Icons.account_circle_rounded),
13-
leadingWidth: 100, // default is 56
14-
),
15-
16-
//To increase the default height & alter opacity of appbar -
17-
18-
appBar: AppBar(
19-
toolbarHeight: 120,
20-
toolbarOpacity: 0.5,
21-
leadingWidth: 100, // default is 56
22-
),
23-
24-
// Image in title in appbar -
25-
26-
AppBar(
27-
title: Container(
28-
width: 40,
29-
child: Image.network(url),
30-
),
31-
centerTitle: true,
32-
),
331

0 commit comments

Comments
 (0)