Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(726)

Unified Diff: sky/examples/widgets/navigation.dart

Issue 1195493002: Refactor Navigator to put state in separate class, initial back button plumbing (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: abarth CR feedback Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/examples/widgets/navigation.dart
diff --git a/sky/examples/widgets/navigation.dart b/sky/examples/widgets/navigation.dart
index ca81a4fbd79721b53072a57450d499e1d4defa90..82e81f850208556a873e105ce58a860633a06dbf 100644
--- a/sky/examples/widgets/navigation.dart
+++ b/sky/examples/widgets/navigation.dart
@@ -65,8 +65,10 @@ List<Route> routes = [
];
class NavigationExampleApp extends App {
+ NavigationState _navState = new NavigationState(routes);
+
Widget build() {
- return new Flex([new Navigator(routes: routes)]);
+ return new Flex([new Navigator(_navState)]);
}
}

Powered by Google App Engine
This is Rietveld 408576698