Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: don't show rate on desktop

Prateek Sunal99c43cc3ef4a
diff --git a/auth/lib/ui/settings/social_section_widget.dart b/auth/lib/ui/settings/social_section_widget.dart
index af8997ea4d..cda18366c5 100644
--- a/auth/lib/ui/settings/social_section_widget.dart
+++ b/auth/lib/ui/settings/social_section_widget.dart
@@ -7,6 +7,7 @@ import 'package:ente_auth/ui/components/captioned_text_widget.dart';
import 'package:ente_auth/ui/components/expandable_menu_item_widget.dart';
import 'package:ente_auth/ui/components/menu_item_widget.dart';
import 'package:ente_auth/ui/settings/common_settings.dart';
+import 'package:ente_auth/utils/platform_util.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher_string.dart';
@@ -31,8 +32,10 @@ class SocialSectionWidget extends StatelessWidget {
final List<Widget> options = [
sectionOptionSpacing,
- SocialsMenuItemWidget(l10n.rateUsOnStore(ratePlace), rateUrl),
- sectionOptionSpacing,
+ if (PlatformUtil.isMobile()) ...[
+ SocialsMenuItemWidget(l10n.rateUsOnStore(ratePlace), rateUrl),
+ sectionOptionSpacing,
+ ],
SocialsMenuItemWidget(
l10n.blog,
"https://ente.io/blog",
@@ -65,11 +68,11 @@ class SocialsMenuItemWidget extends StatelessWidget {
final bool launchInExternalApp;
const SocialsMenuItemWidget(
- this.text,
- this.url, {
- super.key,
- this.launchInExternalApp = true,
- });
+ this.text,
+ this.url, {
+ super.key,
+ this.launchInExternalApp = true,
+ });
@override
Widget build(BuildContext context) {