|
|
|
@ -7,8 +7,6 @@ import 'package:hadi_hoda_flutter/features/download/presentation/bloc/download_e |
|
|
|
import 'package:hadi_hoda_flutter/features/download/presentation/ui/download_page.dart'; |
|
|
|
import 'package:hadi_hoda_flutter/features/home/presentation/bloc/home_bloc.dart'; |
|
|
|
import 'package:hadi_hoda_flutter/features/home/presentation/ui/home_page.dart'; |
|
|
|
import 'package:hadi_hoda_flutter/features/intro/presentation/bloc/intro_bloc.dart'; |
|
|
|
import 'package:hadi_hoda_flutter/features/intro/presentation/ui/intro_page.dart'; |
|
|
|
import 'package:hadi_hoda_flutter/features/language/presentation/bloc/language_bloc.dart'; |
|
|
|
import 'package:hadi_hoda_flutter/features/language/presentation/bloc/language_event.dart'; |
|
|
|
import 'package:hadi_hoda_flutter/features/language/presentation/ui/language_page.dart'; |
|
|
|
@ -20,6 +18,8 @@ import 'package:hadi_hoda_flutter/features/question/presentation/bloc/question_e |
|
|
|
import 'package:hadi_hoda_flutter/features/question/presentation/ui/question_page.dart'; |
|
|
|
import 'package:hadi_hoda_flutter/features/sample/presentation/bloc/sample_bloc.dart'; |
|
|
|
import 'package:hadi_hoda_flutter/features/sample/presentation/ui/sample_page.dart'; |
|
|
|
import 'package:hadi_hoda_flutter/features/splash/presentation/bloc/splash_bloc.dart'; |
|
|
|
import 'package:hadi_hoda_flutter/features/splash/presentation/ui/splash_page.dart'; |
|
|
|
import 'package:hadi_hoda_flutter/init_bindings.dart'; |
|
|
|
|
|
|
|
class Routes { |
|
|
|
@ -28,7 +28,7 @@ class Routes { |
|
|
|
factory Routes() => _i; |
|
|
|
|
|
|
|
static const String samplePage = '/sample_page'; |
|
|
|
static const String introPage = '/intro_page'; |
|
|
|
static const String splashPage = '/splash_page'; |
|
|
|
static const String downloadPage = '/download_page'; |
|
|
|
static const String languagePage = '/language_page'; |
|
|
|
static const String homePage = '/home_page'; |
|
|
|
@ -37,7 +37,7 @@ class Routes { |
|
|
|
} |
|
|
|
|
|
|
|
GoRouter get appPages => GoRouter( |
|
|
|
initialLocation: Routes.introPage, |
|
|
|
initialLocation: Routes.splashPage, |
|
|
|
navigatorKey: ContextProvider.navigatorKey, |
|
|
|
routes: [ |
|
|
|
GoRoute( |
|
|
|
@ -49,12 +49,12 @@ GoRouter get appPages => GoRouter( |
|
|
|
), |
|
|
|
), |
|
|
|
GoRoute( |
|
|
|
name: Routes.introPage, |
|
|
|
path: Routes.introPage, |
|
|
|
redirect: MyMiddlewares.intro, |
|
|
|
name: Routes.splashPage, |
|
|
|
path: Routes.splashPage, |
|
|
|
redirect: MyMiddlewares.splash, |
|
|
|
builder: (context, state) => BlocProvider( |
|
|
|
create: (context) => IntroBloc(), |
|
|
|
child: const IntroPage(), |
|
|
|
create: (context) => SplashBloc(), |
|
|
|
child: const SplashPage(), |
|
|
|
), |
|
|
|
), |
|
|
|
GoRoute( |
|
|
|
|