dreampad/lib/app/routes/app_pages.dart

67 lines
1.8 KiB
Dart
Raw Permalink Normal View History

2023-11-28 10:44:58 +08:00
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/splash/bindings/splash_binding.dart';
import '../modules/splash/views/splash_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._();
2023-11-28 17:57:36 +08:00
static const INITIAL = Routes.HOME;
2023-11-28 10:44:58 +08:00
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.SPLASH,
page: () => const SplashView(),
binding: SplashBinding(),
),
GetPage(
name: _Paths.WELCOME,
page: () => const WelcomeView(),
binding: WelcomeBinding(),
transition: Transition.downToUp,
),
GetPage(
name: _Paths.SELECT,
page: () => const SelectView(),
binding: SelectBinding(),
transition: Transition.downToUp,
),
GetPage(
name: _Paths.QUESTION,
page: () => const QuestionView(),
binding: QuestionBinding(),
),
];
}