|
@@ -6,6 +6,8 @@ import 'package:cpt_nl/router/nl_router.dart';
|
|
|
import 'package:cpt_nl/router/nl_service_impl.dart';
|
|
|
import 'package:cpt_sg/router/sg_router.dart';
|
|
|
import 'package:cpt_sg/router/sg_service_impl.dart';
|
|
|
+import 'package:cpt_th/router/th_router.dart';
|
|
|
+import 'package:cpt_th/router/th_service_impl.dart';
|
|
|
import 'package:cpt_uk/router/uk_router.dart';
|
|
|
import 'package:cpt_vn/router/vn_router.dart';
|
|
|
import 'package:cpt_uk/router/uk_service_impl.dart';
|
|
@@ -19,6 +21,7 @@ import 'package:router/componentRouter/auth_service.dart';
|
|
|
import 'package:router/componentRouter/ms_service.dart';
|
|
|
import 'package:router/componentRouter/nl_service.dart';
|
|
|
import 'package:router/componentRouter/sg_service.dart';
|
|
|
+import 'package:router/componentRouter/th_service.dart';
|
|
|
import 'package:router/componentRouter/vn_service.dart';
|
|
|
import 'package:cpt_vn/router/vn_service_impl.dart';
|
|
|
import 'package:cs_resources/local/theme/theme_config.dart';
|
|
@@ -49,6 +52,7 @@ void main() async {
|
|
|
Get.lazyPut<SGService>(() => SGServiceImpl());
|
|
|
Get.lazyPut<MSService>(() => MSServiceImpl());
|
|
|
Get.lazyPut<NLService>(() => NLServiceImpl());
|
|
|
+ Get.lazyPut<THService>(() => THServiceImpl());
|
|
|
});
|
|
|
|
|
|
runApp(MyApp());
|
|
@@ -126,7 +130,7 @@ class MyApp extends StatelessWidget {
|
|
|
//默认路由与路由表的加载
|
|
|
initialRoute: RouterPath.splash,
|
|
|
getPages: PageRouter.routes + BasicPageRouter.routes + AuthPageRouter.routes + UKPageRouter.routes
|
|
|
- + VNPageRouter.routes + SGPageRouter.routes + NLPageRouter.routes + MSPageRouter.routes,
|
|
|
+ + VNPageRouter.routes + SGPageRouter.routes + NLPageRouter.routes + MSPageRouter.routes + THPageRouter.routes,
|
|
|
//对原生导航的兼容;SmartDialog路由配置生命周期处理
|
|
|
navigatorObservers: [GetXRouterObserver(), FlutterSmartDialog.observer, routeObserver],
|
|
|
//默认页面动画
|
|
@@ -149,6 +153,7 @@ class MyApp extends StatelessWidget {
|
|
|
supportedLocales: const [
|
|
|
Locale('en', 'US'),
|
|
|
Locale('zh', ''),
|
|
|
+ Locale('th', 'TH'),
|
|
|
],
|
|
|
translations: TranslationService(),
|
|
|
//SmartDialog初始化默认Loading与Toast
|