Forráskód Böngészése

Add option to suggest features

Neeraj Gupta 1 éve
szülő
commit
e5812ed09a

+ 1 - 0
lib/core/constants.dart

@@ -7,6 +7,7 @@ const String sentryDSN =
     "https://ed4ddd6309b847ba8849935e26e9b648@sentry.ente.io/9";
     "https://ed4ddd6309b847ba8849935e26e9b648@sentry.ente.io/9";
 const String sentryTunnel = "https://sentry-reporter.ente.io";
 const String sentryTunnel = "https://sentry-reporter.ente.io";
 const String roadmapURL = "https://roadmap.ente.io";
 const String roadmapURL = "https://roadmap.ente.io";
+const String githubIssuesUrl = "https://github.com/ente-io/auth/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc";
 const int microSecondsInDay = 86400000000;
 const int microSecondsInDay = 86400000000;
 const int android11SDKINT = 30;
 const int android11SDKINT = 30;
 const int galleryLoadStartTime = -8000000000000000; // Wednesday, March 6, 1748
 const int galleryLoadStartTime = -8000000000000000; // Wednesday, March 6, 1748

+ 1 - 0
lib/l10n/arb/app_en.arb

@@ -106,6 +106,7 @@
   "enterYourPasswordHint": "Enter your password",
   "enterYourPasswordHint": "Enter your password",
   "forgotPassword": "Forgot password",
   "forgotPassword": "Forgot password",
   "oops": "Oops",
   "oops": "Oops",
+  "suggestFeatures": "Suggest features",
   "faq": "FAQ",
   "faq": "FAQ",
   "faq_q_1": "How secure is ente Auth?",
   "faq_q_1": "How secure is ente Auth?",
   "faq_a_1": "All codes you backup via ente is stored end-to-end encrypted. This means only you can access your codes. Our apps are open source and our cryptography has been externally audited.",
   "faq_a_1": "All codes you backup via ente is stored end-to-end encrypted. This means only you can access your codes. Our apps are open source and our cryptography has been externally audited.",

+ 16 - 1
lib/ui/settings/support_section_widget.dart

@@ -10,6 +10,7 @@ import 'package:ente_auth/ui/settings/common_settings.dart';
 import 'package:ente_auth/ui/settings/faq.dart';
 import 'package:ente_auth/ui/settings/faq.dart';
 import 'package:ente_auth/utils/email_util.dart';
 import 'package:ente_auth/utils/email_util.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter/material.dart';
+import 'package:url_launcher/url_launcher_string.dart';
 
 
 class SupportSectionWidget extends StatefulWidget {
 class SupportSectionWidget extends StatefulWidget {
   const SupportSectionWidget({Key? key}) : super(key: key);
   const SupportSectionWidget({Key? key}) : super(key: key);
@@ -54,7 +55,21 @@ class _SupportSectionWidgetState extends State<SupportSectionWidget> {
           },
           },
         ),
         ),
         sectionOptionSpacing,
         sectionOptionSpacing,
-
+        MenuItemWidget(
+          captionedTextWidget: CaptionedTextWidget(
+            title: l10n.suggestFeatures,
+          ),
+          pressedColor: getEnteColorScheme(context).fillFaint,
+          trailingIcon: Icons.chevron_right_outlined,
+          trailingIconIsMuted: true,
+          onTap: () async {
+            launchUrlString(
+              githubIssuesUrl,
+              mode: LaunchMode.externalApplication,
+            );
+          },
+        ),
+        sectionOptionSpacing,
         MenuItemWidget(
         MenuItemWidget(
           captionedTextWidget: CaptionedTextWidget(
           captionedTextWidget: CaptionedTextWidget(
             title: l10n.email,
             title: l10n.email,