mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-25 00:00:26 +08:00
Hide "Rate App" from App sidebar on the desktop
It's only supported on ios and Android.
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user