1,演示模式完善
This commit is contained in:
parent
296e14b9d2
commit
2b8874782c
@ -218,9 +218,14 @@ class _AuthorizedAdminPageState extends State<AuthorizedAdminPage> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: () {
|
onPressed: () async {
|
||||||
Navigator.pushNamed(
|
var isDemoMode = await Storage.getBool(ifIsDemoModeOrNot);
|
||||||
context, Routers.volumeAuthorizationLockManagePage);
|
if (isDemoMode == false) {
|
||||||
|
Navigator.pushNamed(
|
||||||
|
context, Routers.volumeAuthorizationLockManagePage);
|
||||||
|
} else {
|
||||||
|
Toast.show(msg: '演示模式');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
TranslationLoader.lanKeys!.volumeAuthorizationLock!.tr,
|
TranslationLoader.lanKeys!.volumeAuthorizationLock!.tr,
|
||||||
|
|||||||
@ -295,9 +295,15 @@ class _SendElectronicKeyPageState extends State<SendElectronicKeyPage> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: () {
|
onPressed: () async {
|
||||||
Navigator.pushNamed(
|
// 获取是否是演示模式 演示模式不获取接口
|
||||||
context, Routers.massSendElectronicKeyManagePage);
|
var isDemoMode = await Storage.getBool(ifIsDemoModeOrNot);
|
||||||
|
if (isDemoMode == false) {
|
||||||
|
Navigator.pushNamed(
|
||||||
|
context, Routers.massSendElectronicKeyManagePage);
|
||||||
|
} else {
|
||||||
|
Toast.show(msg: '演示模式');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
TranslationLoader.lanKeys!.sendGroupKey!.tr,
|
TranslationLoader.lanKeys!.sendGroupKey!.tr,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user