| Index: sky/sdk/example/stocks/lib/stock_home.dart
|
| diff --git a/sky/sdk/example/stocks/lib/stock_home.dart b/sky/sdk/example/stocks/lib/stock_home.dart
|
| index 7adb18f314a383d8aecb2d861aa9ee5437fcefbb..64de6f0c77961ef663432799d28044972e0589b5 100644
|
| --- a/sky/sdk/example/stocks/lib/stock_home.dart
|
| +++ b/sky/sdk/example/stocks/lib/stock_home.dart
|
| @@ -149,7 +149,7 @@ class StockHome extends StatefulComponent {
|
| new MenuDivider(),
|
| new MenuItem(
|
| icon: 'action/settings',
|
| - onPressed: () => navigator.pushNamed('/settings'),
|
| + onPressed: _handleShowSettings,
|
| children: [new Text('Settings')]),
|
| new MenuItem(
|
| icon: 'action/help',
|
| @@ -158,6 +158,13 @@ class StockHome extends StatefulComponent {
|
| );
|
| }
|
|
|
| + void _handleShowSettings() {
|
| + assert(navigator.currentRoute.name == '/drawer');
|
| + navigator.pop();
|
| + assert(navigator.currentRoute.name == '/');
|
| + navigator.pushNamed('/settings');
|
| + }
|
| +
|
| void _handleOpenDrawer() {
|
| _drawerController.open();
|
| navigator.pushState("/drawer", (_) {
|
|
|