|
|
|
@ -7,6 +7,8 @@ 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'; |
|
|
|
@ -28,6 +30,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'; |
|
|
|
@ -37,9 +40,17 @@ class Routes { |
|
|
|
} |
|
|
|
|
|
|
|
GoRouter get appPages => GoRouter( |
|
|
|
initialLocation: Routes.splashPage, |
|
|
|
initialLocation: Routes.introPage, |
|
|
|
navigatorKey: ContextProvider.navigatorKey, |
|
|
|
routes: [ |
|
|
|
GoRoute( |
|
|
|
name: Routes.introPage, |
|
|
|
path: Routes.introPage, |
|
|
|
builder: (context, state) => BlocProvider( |
|
|
|
create: (context) => IntroBloc(), |
|
|
|
child: const IntroPage(), |
|
|
|
), |
|
|
|
), |
|
|
|
GoRoute( |
|
|
|
name: Routes.samplePage, |
|
|
|
path: Routes.samplePage, |
|
|
|
|