|
|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import 'dart:async';
|
|
|
|
|
import 'dart:io';
|
|
|
|
|
|
|
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
@ -318,21 +319,22 @@ class ProfileSettingsState extends State<ProfileSettings> {
|
|
|
|
|
// actionItem(AppAssets.permission, LocaleKeys.permissions.tr(context: context), () {}, trailingLabel: "Location, Camera"),
|
|
|
|
|
// 1.divider,
|
|
|
|
|
actionItem(AppAssets.rate, LocaleKeys.rateApp.tr(context: context), () async {
|
|
|
|
|
if (await inAppReview.isAvailable()) {
|
|
|
|
|
inAppReview.requestReview();
|
|
|
|
|
} else {
|
|
|
|
|
inAppReview.openStoreListing(appStoreId: '6758851027');
|
|
|
|
|
}
|
|
|
|
|
// if (Platform.isAndroid) {
|
|
|
|
|
// Utils.openWebView(
|
|
|
|
|
// url: 'https://play.google.com/store/apps/details?id=com.ejada.hmg',
|
|
|
|
|
// );
|
|
|
|
|
// if (await inAppReview.isAvailable()) {
|
|
|
|
|
// inAppReview.requestReview();
|
|
|
|
|
// } else {
|
|
|
|
|
// Utils.openWebView(
|
|
|
|
|
// url: 'https://itunes.apple.com/app/id733503978',
|
|
|
|
|
// );
|
|
|
|
|
// inAppReview.openStoreListing(appStoreId: '6758851027');
|
|
|
|
|
// }
|
|
|
|
|
// }, isExternalLink: true),
|
|
|
|
|
if (Platform.isAndroid) {
|
|
|
|
|
inAppReview.openStoreListing(appStoreId: '6758851027');
|
|
|
|
|
// Utils.openWebView(
|
|
|
|
|
// url: 'https://play.google.com/store/apps/details?id=com.ejada.hmg',
|
|
|
|
|
// );
|
|
|
|
|
} else {
|
|
|
|
|
if (await inAppReview.isAvailable()) {
|
|
|
|
|
inAppReview.requestReview();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// }, isExternalLink: true),
|
|
|
|
|
}),
|
|
|
|
|
1.divider,
|
|
|
|
|
actionItem(AppAssets.privacy_terms, LocaleKeys.privacyPolicy.tr(context: context), () {
|
|
|
|
|
|