Skip to content

Commit 73be1d0

Browse files
committed
[104] Replaces regular hamburger menu behavior with a branded icon version.
1 parent f775045 commit 73be1d0

File tree

5 files changed

+25
-9
lines changed

5 files changed

+25
-9
lines changed
239 Bytes
Loading
302 Bytes
Loading
149 Bytes
Loading

mdc_100_series/lib/backdrop.dart

+24-9
Original file line numberDiff line numberDiff line change
@@ -207,17 +207,31 @@ class _BackdropState extends State<Backdrop>
207207
var appBar = AppBar(
208208
brightness: Brightness.light,
209209
elevation: 0.0,
210-
leading: IconButton(
211-
onPressed: _toggleBackdropPanelVisibility,
212-
icon: AnimatedIcon(
213-
icon: AnimatedIcons.close_menu,
214-
progress: _controller.view,
215-
),
216-
),
210+
titleSpacing: 0.0,
217211
title: _BackdropTitle(
218212
listenable: _controller.view,
219-
frontTitle: widget.frontTitle,
220-
backTitle: widget.backTitle,
213+
frontTitle: Row(
214+
children:<Widget>[
215+
SizedBox(
216+
width: 72.0,
217+
child: IconButton(
218+
padding: EdgeInsets.only(left: 20.0),
219+
onPressed: _toggleBackdropPanelVisibility,
220+
icon: Row(
221+
children: <Widget>[
222+
ImageIcon(AssetImage('assets/slanted_menu.png')),
223+
ImageIcon(AssetImage('assets/diamond.png')),
224+
],
225+
),
226+
),
227+
),
228+
widget.frontTitle,
229+
],
230+
),
231+
backTitle: IconButton(
232+
onPressed: _toggleBackdropPanelVisibility,
233+
icon: Icon(Icons.close),
234+
),
221235
),
222236
actions: <Widget>[
223237
new IconButton(
@@ -248,3 +262,4 @@ class _BackdropState extends State<Backdrop>
248262
);
249263
}
250264
}
265+

mdc_100_series/pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ flutter:
1717
uses-material-design: true
1818
assets:
1919
- assets/diamond.png
20+
- assets/slanted_menu.png
2021
- packages/shrine_images/0-0.jpg
2122
- packages/shrine_images/1-0.jpg
2223
- packages/shrine_images/2-0.jpg

0 commit comments

Comments
 (0)