dio
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:momo/material/detail.dart';
|
||||
import 'package:momo/material/gallery.dart';
|
||||
import 'package:momo/material/home.dart';
|
||||
import 'package:momo/material/login.dart';
|
||||
@ -35,10 +36,7 @@ class MyMaterialRouterConfig {
|
||||
GoRoute(
|
||||
path: "/detail",
|
||||
pageBuilder: (BuildContext context, GoRouterState state) =>
|
||||
const NoTransitionPage(
|
||||
child: Center(
|
||||
child: Text("detail"),
|
||||
)))
|
||||
const NoTransitionPage(child: ImageDetail())),
|
||||
],
|
||||
),
|
||||
GoRoute(
|
||||
@ -52,24 +50,6 @@ class MyMaterialRouterConfig {
|
||||
}
|
||||
return null;
|
||||
}),
|
||||
// ShellRoute(
|
||||
// builder: (BuildContext context, GoRouterState state, Widget child) {
|
||||
// return Scaffold(
|
||||
// appBar: AppBar(
|
||||
// title: Text("nest"),
|
||||
// ),
|
||||
// body: child,
|
||||
// );
|
||||
// },
|
||||
// routes: [
|
||||
// GoRoute(
|
||||
// path: '/',
|
||||
// builder: (BuildContext context, GoRouterState state) {
|
||||
// return Center(
|
||||
// child: Text("login"),
|
||||
// );
|
||||
// })
|
||||
// ]),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user