Skip to content

Commit 8cefebf

Browse files
committed
[104] Replaces regular hamburger menu behavior with a branded icon version.
1 parent ce5c90d commit 8cefebf

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
@@ -209,17 +209,31 @@ class _BackdropState extends State<Backdrop>
209209
var appBar = AppBar(
210210
brightness: Brightness.light,
211211
elevation: 0.0,
212-
leading: IconButton(
213-
onPressed: _toggleBackdropPanelVisibility,
214-
icon: AnimatedIcon(
215-
icon: AnimatedIcons.close_menu,
216-
progress: _controller.view,
217-
),
218-
),
212+
titleSpacing: 0.0,
219213
title: _BackdropTitle(
220214
listenable: _controller.view,
221-
frontTitle: widget.frontTitle,
222-
backTitle: widget.backTitle,
215+
frontTitle: Row(
216+
children:<Widget>[
217+
SizedBox(
218+
width: 72.0,
219+
child: IconButton(
220+
padding: EdgeInsets.only(left: 20.0),
221+
onPressed: _toggleBackdropPanelVisibility,
222+
icon: Row(
223+
children: <Widget>[
224+
ImageIcon(AssetImage('assets/slanted_menu.png')),
225+
ImageIcon(AssetImage('assets/diamond.png')),
226+
],
227+
),
228+
),
229+
),
230+
widget.frontTitle,
231+
],
232+
),
233+
backTitle: IconButton(
234+
onPressed: _toggleBackdropPanelVisibility,
235+
icon: Icon(Icons.close),
236+
),
223237
),
224238
actions: <Widget>[
225239
new IconButton(
@@ -250,3 +264,4 @@ class _BackdropState extends State<Backdrop>
250264
);
251265
}
252266
}
267+

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)