Commit aea77929 authored by Adam Barth's avatar Adam Barth

Merge pull request #1467 from Hixie/app-help

Assert that App(routes) is not null.
parents 4de0a99b cf0fe5fa
......@@ -32,7 +32,15 @@ class App extends StatefulComponent {
this.theme,
this.routes,
this.onGenerateRoute
}): super(key: key);
}): super(key: key) {
assert(() {
'The "routes" argument to App() is required.';
'This might be a sign that you have not upgraded to our new Widgets framework.';
'For more details see: https://groups.google.com/forum/#!topic/flutter-dev/hcX3OvLws9c';
'...or look at our examples: https://github.com/flutter/engine/tree/master/examples';
return routes != null;
});
}
final String title;
final ThemeData theme;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment