Hide "Rate App" from App sidebar on the desktop

It's only supported on ios and Android.
This commit is contained in:
Vishesh Handa
2021-07-29 23:01:24 +02:00
parent bb3afd92cf
commit 3bc617ab97

View File

@ -215,20 +215,21 @@ class _AppDrawerState extends State<AppDrawer>
logEvent(Event.DrawerShare);
},
),
_buildDrawerTile(
context,
icon: Icons.feedback,
title: tr('drawer.rate'),
onTap: () {
LaunchReview.launch(
androidAppId: "io.gitjournal.gitjournal",
iOSAppId: "1466519634",
);
if (Platform.isAndroid || Platform.isIOS)
_buildDrawerTile(
context,
icon: Icons.feedback,
title: tr('drawer.rate'),
onTap: () {
LaunchReview.launch(
androidAppId: "io.gitjournal.gitjournal",
iOSAppId: "1466519634",
);
Navigator.pop(context);
logEvent(Event.DrawerRate);
},
),
Navigator.pop(context);
logEvent(Event.DrawerRate);
},
),
_buildDrawerTile(
context,
icon: Icons.rate_review,