根据平台判断是否需要注释掉上架相关
This commit is contained in:
parent
ad8cdc279b
commit
9648e8dba9
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
|
import 'package:star_lock/flavors.dart';
|
||||||
|
|
||||||
import '../../appRouters.dart';
|
import '../../appRouters.dart';
|
||||||
import '../../app_settings/app_colors.dart';
|
import '../../app_settings/app_colors.dart';
|
||||||
@ -199,21 +200,24 @@ class _StarLockLoginPageState extends State<StarLockLoginPage> {
|
|||||||
width: 10.sp,
|
width: 10.sp,
|
||||||
)),
|
)),
|
||||||
//上架审核注释 提交Google暂时屏蔽
|
//上架审核注释 提交Google暂时屏蔽
|
||||||
// GestureDetector(
|
F.appFlavor == Flavor.sky
|
||||||
// child: SizedBox(
|
? Container()
|
||||||
// // width: 150.w,
|
: GestureDetector(
|
||||||
// height: 50.h,
|
child: SizedBox(
|
||||||
// // color: Colors.red,
|
// width: 150.w,
|
||||||
// child: Center(
|
height: 50.h,
|
||||||
// child: Text('演示模式',
|
// color: Colors.red,
|
||||||
// style: TextStyle(
|
child: Center(
|
||||||
// fontSize: 22.sp, color: AppColors.mainColor)),
|
child: Text('演示模式',
|
||||||
// ),
|
style: TextStyle(
|
||||||
// ),
|
fontSize: 22.sp,
|
||||||
// onTap: () {
|
color: AppColors.mainColor)),
|
||||||
// Get.toNamed(Routers.demoModeLockDetailPage);
|
),
|
||||||
// },
|
),
|
||||||
// )
|
onTap: () {
|
||||||
|
Get.toNamed(Routers.demoModeLockDetailPage);
|
||||||
|
},
|
||||||
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
|
import 'package:star_lock/flavors.dart';
|
||||||
import 'package:star_lock/translations/trans_lib.dart';
|
import 'package:star_lock/translations/trans_lib.dart';
|
||||||
import 'app.dart';
|
import 'app.dart';
|
||||||
import 'package:star_lock/tools/device_info_service.dart';
|
import 'package:star_lock/tools/device_info_service.dart';
|
||||||
@ -36,7 +37,11 @@ Future _initTranslation() async => TranslationLoader.loadTranslation(
|
|||||||
Future _setCommonServices() async {
|
Future _setCommonServices() async {
|
||||||
await Get.putAsync(() => StoreService().init());
|
await Get.putAsync(() => StoreService().init());
|
||||||
await Get.putAsync(() => PlatformInfoService().init());
|
await Get.putAsync(() => PlatformInfoService().init());
|
||||||
//上架审核注释
|
if (F.appFlavor == Flavor.sky) {
|
||||||
// await Get.putAsync(() => DeviceInfoService().init());
|
//上架审核注释 获取设备信息
|
||||||
|
// await Get.putAsync(() => DeviceInfoService().init());
|
||||||
|
} else {
|
||||||
|
await Get.putAsync(() => DeviceInfoService().init());
|
||||||
|
}
|
||||||
// Get.log(PlatformInfoService.to.info.version);
|
// Get.log(PlatformInfoService.to.info.version);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -199,12 +199,14 @@ class _StarLockMainPageState extends State<StarLockMainPage> with BaseWidget {
|
|||||||
height: 160.h,
|
height: 160.h,
|
||||||
),
|
),
|
||||||
//上架审核注释 提交Google暂时屏蔽
|
//上架审核注释 提交Google暂时屏蔽
|
||||||
// SubmitBtn(
|
F.appFlavor == Flavor.sky
|
||||||
// btnName: '演示模式',
|
? Container()
|
||||||
// onClick: () {
|
: SubmitBtn(
|
||||||
// Get.toNamed(Routers.demoModeLockDetailPage);
|
btnName: '演示模式',
|
||||||
// },
|
onClick: () {
|
||||||
// )
|
Get.toNamed(Routers.demoModeLockDetailPage);
|
||||||
|
},
|
||||||
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@ -2,6 +2,7 @@ import 'package:flutter/cupertino.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
|
import 'package:star_lock/flavors.dart';
|
||||||
import 'package:star_lock/mine/mineSet/mineSet/mineSet_logic.dart';
|
import 'package:star_lock/mine/mineSet/mineSet/mineSet_logic.dart';
|
||||||
import '../../../appRouters.dart';
|
import '../../../appRouters.dart';
|
||||||
import '../../../app_settings/app_colors.dart';
|
import '../../../app_settings/app_colors.dart';
|
||||||
@ -185,30 +186,36 @@ class _MineSetPageState extends State<MineSetPage> {
|
|||||||
height: 10.h,
|
height: 10.h,
|
||||||
),
|
),
|
||||||
//上架审核注释
|
//上架审核注释
|
||||||
// CommonItem(
|
F.appFlavor == Flavor.sky
|
||||||
// leftTitel: "Amazon Alexa",
|
? Container()
|
||||||
// rightTitle: "",
|
: CommonItem(
|
||||||
// isHaveLine: true,
|
leftTitel: "Amazon Alexa",
|
||||||
// isHaveDirection: true,
|
rightTitle: "",
|
||||||
// action: () {
|
isHaveLine: true,
|
||||||
// logic.showToast("功能暂未开放");
|
isHaveDirection: true,
|
||||||
// }),
|
action: () {
|
||||||
// CommonItem(
|
logic.showToast("功能暂未开放");
|
||||||
// leftTitel: "Google Home",
|
}),
|
||||||
// rightTitle: "",
|
F.appFlavor == Flavor.sky
|
||||||
// isHaveLine: true,
|
? Container()
|
||||||
// isHaveDirection: true,
|
: CommonItem(
|
||||||
// action: () {
|
leftTitel: "Google Home",
|
||||||
// logic.showToast("功能暂未开放");
|
rightTitle: "",
|
||||||
// }),
|
isHaveLine: true,
|
||||||
// CommonItem(
|
isHaveDirection: true,
|
||||||
// leftTitel: TranslationLoader.lanKeys!.xiaomiIOTPlatform!.tr,
|
action: () {
|
||||||
// rightTitle: "",
|
logic.showToast("功能暂未开放");
|
||||||
// isHaveLine: false,
|
}),
|
||||||
// isHaveDirection: true,
|
F.appFlavor == Flavor.sky
|
||||||
// action: () {
|
? Container()
|
||||||
// logic.showToast("功能暂未开放");
|
: CommonItem(
|
||||||
// }),
|
leftTitel: TranslationLoader.lanKeys!.xiaomiIOTPlatform!.tr,
|
||||||
|
rightTitle: "",
|
||||||
|
isHaveLine: false,
|
||||||
|
isHaveDirection: true,
|
||||||
|
action: () {
|
||||||
|
logic.showToast("功能暂未开放");
|
||||||
|
}),
|
||||||
// CommonItem(leftTitel:TranslationLoader.lanKeys!.valueAddedServices!.tr, rightTitle:"", isHaveDirection: true, action: (){
|
// CommonItem(leftTitel:TranslationLoader.lanKeys!.valueAddedServices!.tr, rightTitle:"", isHaveDirection: true, action: (){
|
||||||
//
|
//
|
||||||
// }),
|
// }),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user