initial commit
This commit is contained in:
7
lib/router/route_list.dart
Normal file
7
lib/router/route_list.dart
Normal file
@@ -0,0 +1,7 @@
|
||||
class RouteList {
|
||||
|
||||
RouteList._();
|
||||
|
||||
static const String homeScreen = '/homeScreen';
|
||||
|
||||
}
|
||||
18
lib/router/router.dart
Normal file
18
lib/router/router.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'package:base_project/features/home/home_screen.dart';
|
||||
import 'package:base_project/router/route_list.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
|
||||
class AppRouter {
|
||||
|
||||
static final router = GoRouter(
|
||||
initialLocation: RouteList.homeScreen,
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: RouteList.homeScreen,
|
||||
name: RouteList.homeScreen,
|
||||
builder: ( context, state ) => const HomeScreen()
|
||||
)
|
||||
]
|
||||
);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user