Commit f9abef3e authored by Adam Barth's avatar Adam Barth

Remove scaffolding for Navigator1 to Navigator2 transition

These types belong at the MaterialApp level.

Fixes #1969
parent 60d77d97
......@@ -31,6 +31,13 @@ AssetBundle _initDefaultBundle() {
final AssetBundle _defaultBundle = _initDefaultBundle();
class RouteArguments {
const RouteArguments({ this.context });
final BuildContext context;
}
typedef Widget RouteBuilder(RouteArguments args);
typedef RouteBuilder RouteGenerator(String name);
class MaterialApp extends StatefulComponent {
MaterialApp({
Key key,
......
......@@ -5,15 +5,6 @@
import 'framework.dart';
import 'overlay.dart';
// ---------------- Begin scaffolding for Navigator1 to Navigator2 transition
class RouteArguments {
const RouteArguments({ this.context });
final BuildContext context;
}
typedef Widget RouteBuilder(RouteArguments args);
typedef RouteBuilder RouteGenerator(String name);
// ---------------- End scaffolding for Navigator1 to Navigator2 transition
abstract class Route {
List<OverlayEntry> get overlayEntries;
......
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