dreampad/lib/app/routes/app_pages.dart

60 lines
1.6 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/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-12-02 16:23:00 +08:00
static const INITIAL = Routes.WELCOME;
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.WELCOME,
page: () => const WelcomeView(),
binding: WelcomeBinding(),
transition: Transition.downToUp,
),
GetPage(
name: _Paths.SELECT,
page: () => const SelectView(),
binding: SelectBinding(),
2023-11-29 20:37:45 +08:00
transition: Transition.noTransition,
2023-11-28 10:44:58 +08:00
),
GetPage(
name: _Paths.QUESTION,
page: () => const QuestionView(),
binding: QuestionBinding(),
),
];
}