|
|
@@ -22,6 +22,8 @@ import 'package:clean/module/similar_photo/similar_photo_controller.dart';
|
|
|
import 'package:clean/module/similar_photo/similar_photo_view.dart';
|
|
|
import 'package:clean/module/splash/intro/intro_controller.dart';
|
|
|
import 'package:clean/module/splash/intro/intro_view.dart';
|
|
|
+import 'package:clean/module/store/discount/discount_controller.dart';
|
|
|
+import 'package:clean/module/store/discount/discount_view.dart';
|
|
|
import 'package:clean/module/store/store_controller.dart';
|
|
|
import 'package:clean/module/store/store_view.dart';
|
|
|
import 'package:clean/module/splash/splash_controller.dart';
|
|
|
@@ -44,7 +46,6 @@ abstract class AppPage {
|
|
|
}
|
|
|
|
|
|
abstract class RoutePath {
|
|
|
-
|
|
|
static const browser = '/browser';
|
|
|
static const mainTab = '/mainTab';
|
|
|
static const privacy = '/privacy';
|
|
|
@@ -54,6 +55,7 @@ abstract class RoutePath {
|
|
|
static const screenshots = '/screenshots';
|
|
|
static const photoInfo = '/photoInfo';
|
|
|
static const store = '/store';
|
|
|
+ static const discount = '/discount';
|
|
|
static const photoPreview = '/photoPreview';
|
|
|
static const locationsSinglePhoto = '/locationsSinglePhoto';
|
|
|
static const setting = '/setting';
|
|
|
@@ -79,21 +81,19 @@ class AppBinding extends Bindings {
|
|
|
|
|
|
lazyPut(() => PhotoInfoController());
|
|
|
lazyPut(() => StoreController());
|
|
|
+ lazyPut(() => DiscountController());
|
|
|
lazyPut(() => LocationsSinglePhotoController());
|
|
|
lazyPut(() => SettingController());
|
|
|
lazyPut(() => AnalysisController());
|
|
|
lazyPut(() => PhotoSelectedPreviewController());
|
|
|
- lazyPut(()=>SplashController());
|
|
|
- lazyPut(()=>WallPaperController());
|
|
|
- lazyPut(()=>IntroController());
|
|
|
+ lazyPut(() => SplashController());
|
|
|
+ lazyPut(() => WallPaperController());
|
|
|
+ lazyPut(() => IntroController());
|
|
|
}
|
|
|
|
|
|
void lazyPut<S>(InstanceBuilderCallback<S> builder) {
|
|
|
Get.lazyPut(builder, fenix: true);
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
final generalPages = [
|
|
|
@@ -107,8 +107,13 @@ final generalPages = [
|
|
|
GetPage(name: RoutePath.photoPreview, page: () => PhotoPreviewPage()),
|
|
|
GetPage(name: RoutePath.photoInfo, page: () => PhotoInfoPage()),
|
|
|
GetPage(name: RoutePath.store, page: () => StorePage()),
|
|
|
- GetPage(name: RoutePath.locationsSinglePhoto, page: () => LocationsSinglePhotoPage()),
|
|
|
- GetPage(name: RoutePath.photoSelectedPreview, page: () => PhotoSelectedPreviewPage()),
|
|
|
+ GetPage(name: RoutePath.discount, page: () => DiscountPage()),
|
|
|
+ GetPage(
|
|
|
+ name: RoutePath.locationsSinglePhoto,
|
|
|
+ page: () => LocationsSinglePhotoPage()),
|
|
|
+ GetPage(
|
|
|
+ name: RoutePath.photoSelectedPreview,
|
|
|
+ page: () => PhotoSelectedPreviewPage()),
|
|
|
GetPage(name: RoutePath.setting, page: () => SettingPage()),
|
|
|
GetPage(name: RoutePath.analysis, page: () => AnalysisPage()),
|
|
|
GetPage(name: RoutePath.splash, page: () => SplashPage()),
|