Add new features and update configurations for improved functionality
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import "package:go_router/go_router.dart";
|
||||
|
||||
import "../pages/home_screen/page.dart";
|
||||
import "../pages/settings/page.dart";
|
||||
import "../pages/project_detail/page.dart";
|
||||
|
||||
/// Application router configuration
|
||||
class AppRouter {
|
||||
/// List of all routes in the application
|
||||
static final routes = [
|
||||
HomeScreenRoute.route,
|
||||
SettingsRoute.route,
|
||||
ProjectDetailRoute.route,
|
||||
];
|
||||
|
||||
/// The main GoRouter instance
|
||||
static final GoRouter router = GoRouter(
|
||||
routes: routes,
|
||||
initialLocation: HomeScreenRoute.path,
|
||||
debugLogDiagnostics: true,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user