@@ -4,6 +4,7 @@ import 'package:flutter_gen/gen_l10n/app_localizations.dart';
44import 'package:flutter_riverpod/flutter_riverpod.dart' ;
55import 'package:go_router/go_router.dart' ;
66import 'package:survey_flutter/model/survey_model.dart' ;
7+ import 'package:survey_flutter/screens/app_route.dart' ;
78import 'package:survey_flutter/screens/home/home_screen.dart' ;
89import 'package:survey_flutter/screens/login/login_screen.dart' ;
910import 'package:survey_flutter/screens/splash/splash_screen.dart' ;
@@ -22,29 +23,27 @@ void main() async {
2223 );
2324}
2425
25- const routePathSplashScreen = '/' ;
26-
2726class App extends StatelessWidget {
2827 App ({Key ? key}) : super (key: key);
2928
3029 final GoRouter _router = GoRouter (
3130 routes: < GoRoute > [
3231 GoRoute (
33- path: routePathSplashScreen ,
32+ path: AppRoute .splash.path ,
3433 builder: (_, __) => const SplashScreen (),
3534 ),
3635 GoRoute (
37- path: routePathLoginScreen ,
36+ path: AppRoute .login.path ,
3837 pageBuilder: (_, __) => const NoTransitionPage <void >(
3938 child: LoginScreen (),
4039 ),
4140 ),
4241 GoRoute (
43- path: routePathHomeScreen ,
42+ path: AppRoute .home.path ,
4443 builder: (_, __) => const HomeScreen (),
4544 ),
4645 GoRoute (
47- path: routePathSurveyScreen ,
46+ path: AppRoute .survey.path ,
4847 builder: (_, state) => SurveyScreen (
4948 survey: state.extra as SurveyModel ,
5049 ),
0 commit comments