init
This commit is contained in:
16
lib/material/router.dart
Normal file
16
lib/material/router.dart
Normal file
@ -0,0 +1,16 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:momo/material/home.dart';
|
||||
|
||||
class MyMaterialRouterConfig {
|
||||
static GoRouter router = GoRouter(
|
||||
routes: <RouteBase>[
|
||||
GoRoute(
|
||||
path: '/',
|
||||
builder: (BuildContext context, GoRouterState state) {
|
||||
return HomePage();
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user