Add macOS review URL
This commit is contained in:
parent
cee736061b
commit
cf8c769e49
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue