Merge branch 'develop' into release
This commit is contained in:
commit
f1447d8a94
@ -23,9 +23,12 @@ class AppFirstEnterHandle {
|
|||||||
switch (flagStr) {
|
switch (flagStr) {
|
||||||
case isAgreePrivacy: // 隐私协议
|
case isAgreePrivacy: // 隐私协议
|
||||||
if (getFlag != isAgreePrivacy) {
|
if (getFlag != isAgreePrivacy) {
|
||||||
await showPrivacyAgreementAlert();
|
final bool? isAgree = await showPrivacyAgreementAlert();
|
||||||
|
if (isAgree ?? false) {
|
||||||
|
await privacySDKInitialization();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
await privacySDKInitialization();
|
|
||||||
if (Get.isRegistered<StarLockLoginLogic>()) {
|
if (Get.isRegistered<StarLockLoginLogic>()) {
|
||||||
Get.find<StarLockLoginLogic>().flushedDeviceInfo();
|
Get.find<StarLockLoginLogic>().flushedDeviceInfo();
|
||||||
}
|
}
|
||||||
@ -51,8 +54,8 @@ class AppFirstEnterHandle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//隐私协议弹窗
|
//隐私协议弹窗
|
||||||
Future<void> showPrivacyAgreementAlert() async {
|
Future<bool?> showPrivacyAgreementAlert() async {
|
||||||
await showCupertinoDialog(
|
return await showCupertinoDialog(
|
||||||
context: Get.context!,
|
context: Get.context!,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return PopScope(
|
return PopScope(
|
||||||
@ -123,7 +126,7 @@ class AppFirstEnterHandle {
|
|||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Storage.setString(isAgreePrivacy, isAgreePrivacy);
|
Storage.setString(isAgreePrivacy, isAgreePrivacy);
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop(true);
|
||||||
getAppFirstEnter(isShowUpdateVersion);
|
getAppFirstEnter(isShowUpdateVersion);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@ -193,7 +196,7 @@ class AppFirstEnterHandle {
|
|||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Storage.setString(isAgreePrivacy, isAgreePrivacy);
|
Storage.setString(isAgreePrivacy, isAgreePrivacy);
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop(true);
|
||||||
getAppFirstEnter(isShowUpdateVersion);
|
getAppFirstEnter(isShowUpdateVersion);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user