Add macOS review URL

This commit is contained in:
Hillel Coren 2021-11-23 13:22:51 +02:00
parent cee736061b
commit cf8c769e49
2 changed files with 9 additions and 2 deletions

View File

@ -1251,8 +1251,7 @@ void _showAbout(BuildContext context) async {
onPressed: () => _showUpdate(context),
),
],
// TODO remove macOS check
if (daysActive > 100 && !isMacOS())
if (daysActive > 100)
AppButton(
label: localization.reviewApp.toUpperCase(),
iconData: Icons.star,

View File

@ -175,11 +175,19 @@ String getPlatform(BuildContext context) =>
Theme.of(context).platform == TargetPlatform.iOS ? 'ios' : 'android';
String getRateAppURL(BuildContext context) {
if (kIsWeb) {
return kCapterralUrl;
}
switch (Theme.of(context).platform) {
case TargetPlatform.android:
return kGoogleStoreUrl;
case TargetPlatform.iOS:
return kAppleStoreUrl;
case TargetPlatform.macOS:
return kMacOSUrl;
case TargetPlatform.windows:
return kWindowsUrl;
default:
return kCapterralUrl;
}