添加弹窗
This commit is contained in:
parent
431a9a5372
commit
04da7aaf6a
@ -51,13 +51,13 @@ class _LockAddressGaoDePageState extends State<LockAddressGaoDePage>{
|
|||||||
|
|
||||||
AMapFlutterLocation.setApiKey("11d49b3f4fc09c04a02bbb7500925ba2", "883a3355d2d77c2fdc2667030dc97ffe");
|
AMapFlutterLocation.setApiKey("11d49b3f4fc09c04a02bbb7500925ba2", "883a3355d2d77c2fdc2667030dc97ffe");
|
||||||
|
|
||||||
EasyLoading.show();
|
// EasyLoading.show();
|
||||||
Future.delayed(const Duration(seconds: 10), () { //asynchronous delay
|
// Future.delayed(const Duration(seconds: 10), () { //asynchronous delay
|
||||||
print("10s之后 菊花没有隐藏的话,强制隐藏菊花");
|
// print("10s之后 菊花没有隐藏的话,强制隐藏菊花");
|
||||||
if(EasyLoading.isShow){
|
// if(EasyLoading.isShow){
|
||||||
EasyLoading.dismiss();
|
// EasyLoading.dismiss();
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
requestLocation();
|
requestLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ class _LockAddressGaoDePageState extends State<LockAddressGaoDePage>{
|
|||||||
Future<void> requestLocation() async {
|
Future<void> requestLocation() async {
|
||||||
location.onLocationChanged().listen((event) {
|
location.onLocationChanged().listen((event) {
|
||||||
print("listenLocationChanged$event");
|
print("listenLocationChanged$event");
|
||||||
EasyLoading.dismiss();
|
// EasyLoading.dismiss();
|
||||||
if (event.isNotEmpty) {
|
if (event.isNotEmpty) {
|
||||||
setState(() {
|
setState(() {
|
||||||
addressInfo = event;
|
addressInfo = event;
|
||||||
|
|||||||
@ -4,6 +4,7 @@ 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/common/safetyVerification/entity/Data.dart';
|
import 'package:star_lock/common/safetyVerification/entity/Data.dart';
|
||||||
|
import 'package:star_lock/tools/toast.dart';
|
||||||
|
|
||||||
import '../../appRouters.dart';
|
import '../../appRouters.dart';
|
||||||
import '../../app_settings/app_colors.dart';
|
import '../../app_settings/app_colors.dart';
|
||||||
@ -135,7 +136,8 @@ class _StarLockMinePageState extends State<StarLockMinePage> with BaseWidget {
|
|||||||
// }),
|
// }),
|
||||||
mineItem('images/mine/icon_mine_main_message.png',
|
mineItem('images/mine/icon_mine_main_message.png',
|
||||||
TranslationLoader.lanKeys!.message!.tr, () {
|
TranslationLoader.lanKeys!.message!.tr, () {
|
||||||
Navigator.pushNamed(context, Routers.messageListPage);
|
// Navigator.pushNamed(context, Routers.messageListPage);
|
||||||
|
Toast.show(msg: "功能暂未开放");
|
||||||
}),
|
}),
|
||||||
//删除“客服”行
|
//删除“客服”行
|
||||||
// mineItem('images/mine/icon_mine_main_supportStaff.png',
|
// mineItem('images/mine/icon_mine_main_supportStaff.png',
|
||||||
|
|||||||
@ -9,6 +9,7 @@ import '../../../app_settings/app_colors.dart';
|
|||||||
import '../../../tools/commonItem.dart';
|
import '../../../tools/commonItem.dart';
|
||||||
import '../../../tools/submitBtn.dart';
|
import '../../../tools/submitBtn.dart';
|
||||||
import '../../../tools/titleAppBar.dart';
|
import '../../../tools/titleAppBar.dart';
|
||||||
|
import '../../../tools/toast.dart';
|
||||||
import '../../../translations/trans_lib.dart';
|
import '../../../translations/trans_lib.dart';
|
||||||
|
|
||||||
class MineSetPage extends StatefulWidget {
|
class MineSetPage extends StatefulWidget {
|
||||||
@ -99,7 +100,8 @@ class _MineSetPageState extends State<MineSetPage> {
|
|||||||
isHaveLine: true,
|
isHaveLine: true,
|
||||||
isHaveDirection: true,
|
isHaveDirection: true,
|
||||||
action: () {
|
action: () {
|
||||||
Navigator.pushNamed(context, Routers.authorityManagementPage);
|
// Navigator.pushNamed(context, Routers.authorityManagementPage);
|
||||||
|
Toast.show(msg: "功能暂未开放");
|
||||||
}),
|
}),
|
||||||
CommonItem(
|
CommonItem(
|
||||||
leftTitel: TranslationLoader.lanKeys!.lockGroup!.tr,
|
leftTitel: TranslationLoader.lanKeys!.lockGroup!.tr,
|
||||||
@ -182,13 +184,17 @@ class _MineSetPageState extends State<MineSetPage> {
|
|||||||
rightTitle: "",
|
rightTitle: "",
|
||||||
isHaveLine: true,
|
isHaveLine: true,
|
||||||
isHaveDirection: true,
|
isHaveDirection: true,
|
||||||
action: () {}),
|
action: () {
|
||||||
|
Toast.show(msg: "功能暂未开放");
|
||||||
|
}),
|
||||||
CommonItem(
|
CommonItem(
|
||||||
leftTitel: "Google Home",
|
leftTitel: "Google Home",
|
||||||
rightTitle: "",
|
rightTitle: "",
|
||||||
isHaveLine: true,
|
isHaveLine: true,
|
||||||
isHaveDirection: true,
|
isHaveDirection: true,
|
||||||
action: () {}),
|
action: () {
|
||||||
|
Toast.show(msg: "功能暂未开放");
|
||||||
|
}),
|
||||||
// CommonItem(leftTitel:TranslationLoader.lanKeys!.valueAddedServices!.tr, rightTitle:"", isHaveDirection: true, action: (){
|
// CommonItem(leftTitel:TranslationLoader.lanKeys!.valueAddedServices!.tr, rightTitle:"", isHaveDirection: true, action: (){
|
||||||
//
|
//
|
||||||
// }),
|
// }),
|
||||||
|
|||||||
@ -5,6 +5,7 @@ import 'package:get/get.dart';
|
|||||||
import '../../../appRouters.dart';
|
import '../../../appRouters.dart';
|
||||||
import '../../../app_settings/app_colors.dart';
|
import '../../../app_settings/app_colors.dart';
|
||||||
import '../../../tools/titleAppBar.dart';
|
import '../../../tools/titleAppBar.dart';
|
||||||
|
import '../../../tools/toast.dart';
|
||||||
import '../../../translations/trans_lib.dart';
|
import '../../../translations/trans_lib.dart';
|
||||||
|
|
||||||
class ValueAddedServicesListPage extends StatefulWidget {
|
class ValueAddedServicesListPage extends StatefulWidget {
|
||||||
@ -30,50 +31,58 @@ class _ValueAddedServicesPageListState
|
|||||||
_valueAddedServicesItem(
|
_valueAddedServicesItem(
|
||||||
Image.asset('images/mine/icon_mine_valueAddedServices_note.png'),
|
Image.asset('images/mine/icon_mine_valueAddedServices_note.png'),
|
||||||
TranslationLoader.lanKeys!.note!.tr, () {
|
TranslationLoader.lanKeys!.note!.tr, () {
|
||||||
Navigator.pushNamed(
|
Toast.show(msg: "功能暂未开放");
|
||||||
context, Routers.valueAddedServicesNoteAndEmailDetailPage,
|
// Navigator.pushNamed(
|
||||||
arguments: 1);
|
// context, Routers.valueAddedServicesNoteAndEmailDetailPage,
|
||||||
|
// arguments: 1);
|
||||||
}),
|
}),
|
||||||
_valueAddedServicesItem(
|
_valueAddedServicesItem(
|
||||||
Image.asset('images/mine/icon_mine_valueAddedServices_email.png'),
|
Image.asset('images/mine/icon_mine_valueAddedServices_email.png'),
|
||||||
TranslationLoader.lanKeys!.mail!.tr, () {
|
TranslationLoader.lanKeys!.mail!.tr, () {
|
||||||
Navigator.pushNamed(
|
Toast.show(msg: "功能暂未开放");
|
||||||
context, Routers.valueAddedServicesNoteAndEmailDetailPage,
|
// Navigator.pushNamed(
|
||||||
arguments: 2);
|
// context, Routers.valueAddedServicesNoteAndEmailDetailPage,
|
||||||
|
// arguments: 2);
|
||||||
}),
|
}),
|
||||||
_valueAddedServicesItem(
|
_valueAddedServicesItem(
|
||||||
Image.asset(
|
Image.asset(
|
||||||
'images/mine/icon_mine_valueAddedServices_realName.png'),
|
'images/mine/icon_mine_valueAddedServices_realName.png'),
|
||||||
TranslationLoader.lanKeys!.realNameAuthentication!.tr, () {
|
TranslationLoader.lanKeys!.realNameAuthentication!.tr, () {
|
||||||
Navigator.pushNamed(
|
Toast.show(msg: "功能暂未开放");
|
||||||
context, Routers.valueAddedServicesRealNamePage);
|
// Navigator.pushNamed(
|
||||||
|
// context, Routers.valueAddedServicesRealNamePage);
|
||||||
}),
|
}),
|
||||||
_valueAddedServicesItem(
|
_valueAddedServicesItem(
|
||||||
Image.asset('images/mine/icon_mine_valueAddedServices_vip.png'),
|
Image.asset('images/mine/icon_mine_valueAddedServices_vip.png'),
|
||||||
TranslationLoader.lanKeys!.advancedFunction!.tr, () {
|
TranslationLoader.lanKeys!.advancedFunction!.tr, () {
|
||||||
Navigator.pushNamed(
|
Toast.show(msg: "功能暂未开放");
|
||||||
context, Routers.valueAddedServicesHighFunctionPage);
|
// Navigator.pushNamed(
|
||||||
|
// context, Routers.valueAddedServicesHighFunctionPage);
|
||||||
}),
|
}),
|
||||||
_valueAddedServicesItem(
|
_valueAddedServicesItem(
|
||||||
Image.asset('images/mine/icon_mine_valueAddedServices_push.png'),
|
Image.asset('images/mine/icon_mine_valueAddedServices_push.png'),
|
||||||
TranslationLoader.lanKeys!.pushMessage!.tr, () {
|
TranslationLoader.lanKeys!.pushMessage!.tr, () {
|
||||||
|
Toast.show(msg: "功能暂未开放");
|
||||||
// Navigator.pushNamed(context, Routers.gatewayDetailPage);
|
// Navigator.pushNamed(context, Routers.gatewayDetailPage);
|
||||||
}),
|
}),
|
||||||
_valueAddedServicesItem(
|
_valueAddedServicesItem(
|
||||||
Image.asset(
|
Image.asset(
|
||||||
'images/mine/icon_mine_valueAddedServices_checkIn.png'),
|
'images/mine/icon_mine_valueAddedServices_checkIn.png'),
|
||||||
TranslationLoader.lanKeys!.checkingIn!.tr, () {
|
TranslationLoader.lanKeys!.checkingIn!.tr, () {
|
||||||
|
Toast.show(msg: "功能暂未开放");
|
||||||
// Navigator.pushNamed(context, Routers.gatewayDetailPage);
|
// Navigator.pushNamed(context, Routers.gatewayDetailPage);
|
||||||
}),
|
}),
|
||||||
_valueAddedServicesItem(
|
_valueAddedServicesItem(
|
||||||
Image.asset(
|
Image.asset(
|
||||||
'images/mine/icon_mine_valueAddedServices_storage.png'),
|
'images/mine/icon_mine_valueAddedServices_storage.png'),
|
||||||
TranslationLoader.lanKeys!.recordsRetention!.tr, () {
|
TranslationLoader.lanKeys!.recordsRetention!.tr, () {
|
||||||
|
Toast.show(msg: "功能暂未开放");
|
||||||
// Navigator.pushNamed(context, Routers.gatewayDetailPage);
|
// Navigator.pushNamed(context, Routers.gatewayDetailPage);
|
||||||
}),
|
}),
|
||||||
_valueAddedServicesItem(
|
_valueAddedServicesItem(
|
||||||
Image.asset('images/mine/icon_mine_valueAddedServices_vip.png'),
|
Image.asset('images/mine/icon_mine_valueAddedServices_vip.png'),
|
||||||
'可视对讲', () {
|
'可视对讲', () {
|
||||||
|
Toast.show(msg: "功能暂未开放");
|
||||||
// Navigator.pushNamed(context, Routers.gatewayDetailPage);
|
// Navigator.pushNamed(context, Routers.gatewayDetailPage);
|
||||||
}),
|
}),
|
||||||
_valueAddedServicesItem(
|
_valueAddedServicesItem(
|
||||||
@ -85,6 +94,7 @@ class _ValueAddedServicesPageListState
|
|||||||
fontWeight: FontWeight.w600),
|
fontWeight: FontWeight.w600),
|
||||||
),
|
),
|
||||||
"Amazon Alexa", () {
|
"Amazon Alexa", () {
|
||||||
|
Toast.show(msg: "功能暂未开放");
|
||||||
// Navigator.pushNamed(context, Routers.gatewayDetailPage);
|
// Navigator.pushNamed(context, Routers.gatewayDetailPage);
|
||||||
}),
|
}),
|
||||||
_valueAddedServicesItem(
|
_valueAddedServicesItem(
|
||||||
@ -96,6 +106,7 @@ class _ValueAddedServicesPageListState
|
|||||||
fontWeight: FontWeight.w600),
|
fontWeight: FontWeight.w600),
|
||||||
),
|
),
|
||||||
"Google Home", () {
|
"Google Home", () {
|
||||||
|
Toast.show(msg: "功能暂未开放");
|
||||||
// Navigator.pushNamed(context, Routers.gatewayDetailPage);
|
// Navigator.pushNamed(context, Routers.gatewayDetailPage);
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
abstract class Api {
|
abstract class Api {
|
||||||
final String baseUrl = "https://pre.lock.star-lock.cn:8093/api"; //曾工本地
|
final String baseUrl = "https://pre.lock.star-lock.cn:8093/api"; //预发布环境
|
||||||
// final String baseUrl = "http://test.lock.star-lock.cn/api"; // 葛工
|
// final String baseUrl = "http://test.lock.star-lock.cn/api"; // 葛工
|
||||||
// final String baseUrl = "https://lock.star-lock.cn/api"; // 测试环境
|
// final String baseUrl = "https://lock.star-lock.cn/api"; // 测试环境
|
||||||
// final String baseUrl = "http://wenlin.lock.star-lock.cn/api"; //曾工
|
// final String baseUrl = "http://wenlin.lock.star-lock.cn/api"; //曾工
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user