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

@ -90,7 +90,7 @@ class AppState {
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() {

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

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

Loading…
Cancel
Save