|
@@ -20,9 +20,15 @@ import 'package:clean/module/setting/setting_controller.dart';
|
|
|
import 'package:clean/module/setting/setting_view.dart';
|
|
import 'package:clean/module/setting/setting_view.dart';
|
|
|
import 'package:clean/module/similar_photo/similar_photo_controller.dart';
|
|
import 'package:clean/module/similar_photo/similar_photo_controller.dart';
|
|
|
import 'package:clean/module/similar_photo/similar_photo_view.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/store_controller.dart';
|
|
import 'package:clean/module/store/store_controller.dart';
|
|
|
import 'package:clean/module/store/store_view.dart';
|
|
import 'package:clean/module/store/store_view.dart';
|
|
|
-import 'package:flutter/cupertino.dart';
|
|
|
|
|
|
|
+import 'package:clean/module/splash/splash_controller.dart';
|
|
|
|
|
+import 'package:clean/module/splash/splash_view.dart';
|
|
|
|
|
+import 'package:clean/module/wallpaper/wallpaper_controller.dart';
|
|
|
|
|
+import 'package:clean/module/wallpaper/wallpaper_view.dart';
|
|
|
|
|
+
|
|
|
import 'package:get/get.dart';
|
|
import 'package:get/get.dart';
|
|
|
|
|
|
|
|
import '../module/browser/browser_controller.dart';
|
|
import '../module/browser/browser_controller.dart';
|
|
@@ -38,6 +44,7 @@ abstract class AppPage {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
abstract class RoutePath {
|
|
abstract class RoutePath {
|
|
|
|
|
+
|
|
|
static const browser = '/browser';
|
|
static const browser = '/browser';
|
|
|
static const mainTab = '/mainTab';
|
|
static const mainTab = '/mainTab';
|
|
|
static const privacy = '/privacy';
|
|
static const privacy = '/privacy';
|
|
@@ -52,6 +59,9 @@ abstract class RoutePath {
|
|
|
static const setting = '/setting';
|
|
static const setting = '/setting';
|
|
|
static const analysis = '/analysis';
|
|
static const analysis = '/analysis';
|
|
|
static const photoSelectedPreview = '/photoSelectedPreview';
|
|
static const photoSelectedPreview = '/photoSelectedPreview';
|
|
|
|
|
+ static const splash = '/splash';
|
|
|
|
|
+ static const wallpaper = '/wallpaper';
|
|
|
|
|
+ static const intro = '/intro';
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
class AppBinding extends Bindings {
|
|
class AppBinding extends Bindings {
|
|
@@ -73,12 +83,17 @@ class AppBinding extends Bindings {
|
|
|
lazyPut(() => SettingController());
|
|
lazyPut(() => SettingController());
|
|
|
lazyPut(() => AnalysisController());
|
|
lazyPut(() => AnalysisController());
|
|
|
lazyPut(() => PhotoSelectedPreviewController());
|
|
lazyPut(() => PhotoSelectedPreviewController());
|
|
|
|
|
+ lazyPut(()=>SplashController());
|
|
|
|
|
+ lazyPut(()=>WallPaperController());
|
|
|
|
|
+ lazyPut(()=>IntroController());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void lazyPut<S>(InstanceBuilderCallback<S> builder) {
|
|
void lazyPut<S>(InstanceBuilderCallback<S> builder) {
|
|
|
Get.lazyPut(builder, fenix: true);
|
|
Get.lazyPut(builder, fenix: true);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
final generalPages = [
|
|
final generalPages = [
|
|
@@ -96,4 +111,7 @@ final generalPages = [
|
|
|
GetPage(name: RoutePath.photoSelectedPreview, page: () => PhotoSelectedPreviewPage()),
|
|
GetPage(name: RoutePath.photoSelectedPreview, page: () => PhotoSelectedPreviewPage()),
|
|
|
GetPage(name: RoutePath.setting, page: () => SettingPage()),
|
|
GetPage(name: RoutePath.setting, page: () => SettingPage()),
|
|
|
GetPage(name: RoutePath.analysis, page: () => AnalysisPage()),
|
|
GetPage(name: RoutePath.analysis, page: () => AnalysisPage()),
|
|
|
|
|
+ GetPage(name: RoutePath.splash, page: () => SplashPage()),
|
|
|
|
|
+ GetPage(name: RoutePath.wallpaper, page: () => WallPaperPage()),
|
|
|
|
|
+ GetPage(name: RoutePath.intro, page: () => IntroPage()),
|
|
|
];
|
|
];
|