60 lines
1.6 KiB
Dart
60 lines
1.6 KiB
Dart
import 'package:get/get.dart';
|
|
|
|
import '../modules/home/bindings/home_binding.dart';
|
|
import '../modules/home/views/home_view.dart';
|
|
import '../modules/home/views/explore_view.dart';
|
|
import '../modules/home/views/explore_study_view.dart';
|
|
import '../modules/question/bindings/question_binding.dart';
|
|
import '../modules/question/views/question_view.dart';
|
|
import '../modules/select/bindings/select_binding.dart';
|
|
import '../modules/select/views/select_view.dart';
|
|
import '../modules/welcome/bindings/welcome_binding.dart';
|
|
import '../modules/welcome/views/welcome_view.dart';
|
|
|
|
// ignore_for_file: constant_identifier_names
|
|
|
|
part 'app_routes.dart';
|
|
|
|
class AppPages {
|
|
AppPages._();
|
|
|
|
static const INITIAL = Routes.SELECT;
|
|
|
|
static final routes = [
|
|
GetPage(
|
|
name: _Paths.HOME,
|
|
page: () => const HomeView(),
|
|
binding: HomeBinding(),
|
|
children: [
|
|
GetPage(
|
|
name: _Paths.EXPLORE,
|
|
page: () => const ExploreView(),
|
|
binding: HomeBinding(),
|
|
),
|
|
GetPage(
|
|
name: _Paths.EXPLORE_STUDY,
|
|
page: () => const ExploreStudyView(),
|
|
binding: HomeBinding(),
|
|
),
|
|
],
|
|
),
|
|
GetPage(
|
|
name: _Paths.WELCOME,
|
|
page: () => const WelcomeView(),
|
|
binding: WelcomeBinding(),
|
|
transition: Transition.downToUp,
|
|
),
|
|
GetPage(
|
|
name: _Paths.SELECT,
|
|
page: () => const SelectView(),
|
|
binding: SelectBinding(),
|
|
transition: Transition.noTransition,
|
|
),
|
|
GetPage(
|
|
name: _Paths.QUESTION,
|
|
page: () => const QuestionView(),
|
|
binding: QuestionBinding(),
|
|
),
|
|
];
|
|
}
|