Refactor Navigator to put state in separate class, initial back button plumbing
R=abarth@chromium.org, abarth Review URL: https://codereview.chromium.org/1195493002.
This commit is contained in:
@@ -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)]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user