|
|
|
@ -18,6 +18,8 @@ import 'package:hadi_hoda_flutter/features/level/presentation/ui/level_page.dart |
|
|
|
import 'package:hadi_hoda_flutter/features/question/presentation/bloc/question_bloc.dart'; |
|
|
|
import 'package:hadi_hoda_flutter/features/question/presentation/bloc/question_event.dart'; |
|
|
|
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/init_bindings.dart'; |
|
|
|
|
|
|
|
class Routes { |
|
|
|
@ -25,6 +27,7 @@ class Routes { |
|
|
|
const Routes._internal(); |
|
|
|
factory Routes() => _i; |
|
|
|
|
|
|
|
static const String samplePage = '/sample_page'; |
|
|
|
static const String introPage = '/intro_page'; |
|
|
|
static const String downloadPage = '/download_page'; |
|
|
|
static const String languagePage = '/language_page'; |
|
|
|
@ -37,6 +40,14 @@ GoRouter get appPages => GoRouter( |
|
|
|
initialLocation: Routes.introPage, |
|
|
|
navigatorKey: ContextProvider.navigatorKey, |
|
|
|
routes: [ |
|
|
|
GoRoute( |
|
|
|
name: Routes.samplePage, |
|
|
|
path: Routes.samplePage, |
|
|
|
builder: (context, state) => BlocProvider( |
|
|
|
create: (context) => SampleBloc(locator()), |
|
|
|
child: const SamplePage(), |
|
|
|
), |
|
|
|
), |
|
|
|
GoRoute( |
|
|
|
name: Routes.introPage, |
|
|
|
path: Routes.introPage, |
|
|
|
|