flutter_upgrade
haroon amjad 9 months ago
parent 6e15336cc4
commit 5adc2bc64f

@ -90,7 +90,7 @@ class AppState {
String get getHuaweiPushToken => _huaweiPushToken; String get getHuaweiPushToken => _huaweiPushToken;
final PostParamsModel _postParamsInitConfig = PostParamsModel(channel: 31, versionID: 8.3, mobileType: Platform.isAndroid ? "android" : "ios"); final PostParamsModel _postParamsInitConfig = PostParamsModel(channel: 31, versionID: 8.6, mobileType: Platform.isAndroid ? "android" : "ios");
void setPostParamsInitConfig() { void setPostParamsInitConfig() {

@ -88,9 +88,9 @@ class _LoginScreenState extends State<LoginScreen> {
if (Platform.isAndroid) { if (Platform.isAndroid) {
// isOnExternalStorage = await SafeDevice.isOnExternalStorage; // isOnExternalStorage = await SafeDevice.isOnExternalStorage;
SafeDevice.isDevelopmentModeEnable.then((value) { // SafeDevice.isDevelopmentModeEnable.then((value) {
isDevelopmentModeEnable = value; // isDevelopmentModeEnable = value;
}); // });
} }
} catch (error) { } catch (error) {
print(error); print(error);
@ -127,7 +127,7 @@ class _LoginScreenState extends State<LoginScreen> {
} }
AppNotifications().init(firebaseToken, context); AppNotifications().init(firebaseToken, context);
if (isJailBroken || !isRealDevice || isDevelopmentModeEnable) { if (isJailBroken || !isRealDevice) {
Utils.hideLoading(context); Utils.hideLoading(context);
Navigator.pushNamedAndRemoveUntil(context, AppRoutes.unsafeDeviceScreen, (_) => false); Navigator.pushNamedAndRemoveUntil(context, AppRoutes.unsafeDeviceScreen, (_) => false);
} else { } else {

@ -37,10 +37,10 @@ class _UnsafeDeviceScreenState extends State<UnsafeDeviceScreen> {
.paddingOnly(left: 20.0, right: 20.0), .paddingOnly(left: 20.0, right: 20.0),
48.height, 48.height,
passwordConstraintsUI("The device is not jailbroken or rooted.", true).paddingOnly(left: 24.0, right: 5.0), passwordConstraintsUI("The device is not jailbroken or rooted.", true).paddingOnly(left: 24.0, right: 5.0),
8.height, // 8.height,
passwordConstraintsUI("The app is not installed on external storage.", true).paddingOnly(left: 24.0, right: 5.0), // passwordConstraintsUI("The app is not installed on external storage.", true).paddingOnly(left: 24.0, right: 5.0),
8.height, // 8.height,
passwordConstraintsUI("Development mode is disabled.", true).paddingOnly(left: 24.0, right: 5.0), // passwordConstraintsUI("Development mode is disabled.", true).paddingOnly(left: 24.0, right: 5.0),
21.height, 21.height,
DefaultButton(LocaleKeys.ok.tr(), () async { DefaultButton(LocaleKeys.ok.tr(), () async {
if (Platform.isAndroid) { if (Platform.isAndroid) {

Loading…
Cancel
Save