From 3bc617ab97bd02506b9fdc577724b6f3b15c82ab Mon Sep 17 00:00:00 2001
From: Vishesh Handa <me@vhanda.in>
Date: Thu, 29 Jul 2021 23:01:24 +0200
Subject: [PATCH] Hide "Rate App" from App sidebar on the desktop

It's only supported on ios and Android.
---
 lib/widgets/app_drawer.dart | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/lib/widgets/app_drawer.dart b/lib/widgets/app_drawer.dart
index 382b9401..49207452 100644
--- a/lib/widgets/app_drawer.dart
+++ b/lib/widgets/app_drawer.dart
@@ -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,