|
|
@ -1,10 +1,18 @@ |
|
|
|
|
|
import 'package:shia_game_flutter/features/awards/presentation/binding/awards_binding.dart'; |
|
|
|
|
|
import 'package:shia_game_flutter/features/awards/presentation/ui/awards_page.dart'; |
|
|
import 'package:shia_game_flutter/features/home/presentation/binding/home_binding.dart'; |
|
|
import 'package:shia_game_flutter/features/home/presentation/binding/home_binding.dart'; |
|
|
import 'package:shia_game_flutter/features/home/presentation/pages/home_page.dart'; |
|
|
import 'package:shia_game_flutter/features/home/presentation/pages/home_page.dart'; |
|
|
import 'package:shia_game_flutter/features/intro/presentation/binding/intro_binding.dart'; |
|
|
import 'package:shia_game_flutter/features/intro/presentation/binding/intro_binding.dart'; |
|
|
import 'package:shia_game_flutter/features/intro/presentation/ui/intro_page.dart'; |
|
|
import 'package:shia_game_flutter/features/intro/presentation/ui/intro_page.dart'; |
|
|
|
|
|
import 'package:shia_game_flutter/features/master/presentation/binding/master_binding.dart'; |
|
|
|
|
|
import 'package:shia_game_flutter/features/master/presentation/ui/master_page.dart'; |
|
|
|
|
|
import 'package:shia_game_flutter/features/profile/presentation/binding/profile_binding.dart'; |
|
|
|
|
|
import 'package:shia_game_flutter/features/profile/presentation/ui/profile_page.dart'; |
|
|
import 'package:shia_game_flutter/features/sample/presentation/binding/sample_binding.dart'; |
|
|
import 'package:shia_game_flutter/features/sample/presentation/binding/sample_binding.dart'; |
|
|
import 'package:shia_game_flutter/features/sample/presentation/ui/sample_page.dart'; |
|
|
import 'package:shia_game_flutter/features/sample/presentation/ui/sample_page.dart'; |
|
|
import 'package:get/get.dart'; |
|
|
import 'package:get/get.dart'; |
|
|
|
|
|
import 'package:shia_game_flutter/features/shop/presentation/binding/shop_binding.dart'; |
|
|
|
|
|
import 'package:shia_game_flutter/features/shop/presentation/ui/shop_page.dart'; |
|
|
|
|
|
|
|
|
class Routes { |
|
|
class Routes { |
|
|
static const Routes _i = Routes._internal(); |
|
|
static const Routes _i = Routes._internal(); |
|
|
@ -13,7 +21,11 @@ class Routes { |
|
|
|
|
|
|
|
|
static const String samplePage = '/sample_page'; |
|
|
static const String samplePage = '/sample_page'; |
|
|
static const String introPage = '/intro_page'; |
|
|
static const String introPage = '/intro_page'; |
|
|
|
|
|
static const String masterPage = '/'; |
|
|
static const String homePage = '/home_page'; |
|
|
static const String homePage = '/home_page'; |
|
|
|
|
|
static const String shopPage = '/shop_page'; |
|
|
|
|
|
static const String awardsPage = '/awards_page'; |
|
|
|
|
|
static const String profilePage = '/profile_page'; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
List<GetPage> get appPages => [ |
|
|
List<GetPage> get appPages => [ |
|
|
@ -28,8 +40,30 @@ List<GetPage> get appPages => [ |
|
|
binding: IntroBinding(), |
|
|
binding: IntroBinding(), |
|
|
), |
|
|
), |
|
|
GetPage( |
|
|
GetPage( |
|
|
name: Routes.homePage, |
|
|
|
|
|
page: () => const HomePage(), |
|
|
|
|
|
binding: HomeBinding(), |
|
|
|
|
|
|
|
|
name: Routes.masterPage, |
|
|
|
|
|
page: () => const MasterPage(), |
|
|
|
|
|
binding: MasterBinding(), |
|
|
|
|
|
children: [ |
|
|
|
|
|
GetPage( |
|
|
|
|
|
name: Routes.homePage, |
|
|
|
|
|
page: () => const HomePage(), |
|
|
|
|
|
binding: HomeBinding(), |
|
|
|
|
|
), |
|
|
|
|
|
GetPage( |
|
|
|
|
|
name: Routes.shopPage, |
|
|
|
|
|
page: () => const ShopPage(), |
|
|
|
|
|
binding: ShopBinding(), |
|
|
|
|
|
), |
|
|
|
|
|
GetPage( |
|
|
|
|
|
name: Routes.awardsPage, |
|
|
|
|
|
page: () => const AwardsPage(), |
|
|
|
|
|
binding: AwardsBinding(), |
|
|
|
|
|
), |
|
|
|
|
|
GetPage( |
|
|
|
|
|
name: Routes.profilePage, |
|
|
|
|
|
page: () => const ProfilePage(), |
|
|
|
|
|
binding: ProfileBinding(), |
|
|
|
|
|
), |
|
|
|
|
|
], |
|
|
), |
|
|
), |
|
|
]; |
|
|
]; |