app_pages.dart 828 B

12345678910111213141516171819202122232425262728293031323334
  1. import 'package:get/get.dart';
  2. import '../modules/home/bindings/home_binding.dart';
  3. import '../modules/home/views/home_view.dart';
  4. import '../modules/login/bindings/login_binding.dart';
  5. import '../modules/login/views/login_view.dart';
  6. import '../modules/welcome/bindings/welcome_binding.dart';
  7. import '../modules/welcome/views/welcome_view.dart';
  8. part 'app_routes.dart';
  9. class AppPages {
  10. AppPages._();
  11. static const INITIAL = Routes.WELCOME;
  12. static final routes = [
  13. GetPage(
  14. name: _Paths.HOME,
  15. page: () => const HomeView(),
  16. binding: HomeBinding(),
  17. ),
  18. GetPage(
  19. name: _Paths.WELCOME,
  20. page: () => const WelcomeView(),
  21. binding: WelcomeBinding(),
  22. ),
  23. GetPage(
  24. name: _Paths.LOGIN,
  25. page: () => const LoginView(),
  26. binding: LoginBinding(),
  27. ),
  28. ];
  29. }