소스 검색

Minor changes (#228)

Vishnu Mohandas 1 년 전
부모
커밋
4b633d1a02
4개의 변경된 파일33개의 추가작업 그리고 35개의 파일을 삭제
  1. 1 1
      lib/l10n/arb/app_en.arb
  2. 29 30
      lib/ui/settings/support_dev_widget.dart
  3. 2 3
      lib/ui/settings_page.dart
  4. 1 1
      lib/utils/dialog_util.dart

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

@@ -70,7 +70,7 @@
   "incorrectPasswordTitle": "Incorrect password",
   "welcomeBack": "Welcome back!",
   "madeWithLoveAtPrefix": "made with ❤️ at ",
-  "supportDevs": "Subscribe to <bold-green>ente</bold-green> to support this project.",
+  "supportDevs": "Subscribe to <bold-green>ente</bold-green> to support this project",
   "supportDiscount": "Use coupon code \"AUTH\" to get 10% off first year",
   "changeEmail": "Change email",
   "changePassword": "Change password",

+ 29 - 30
lib/ui/settings/support_dev_widget.dart

@@ -39,37 +39,36 @@ class SupportDevWidget extends StatelessWidget {
 
   GestureDetector buildWidget(AppLocalizations l10n, BuildContext context) {
     return GestureDetector(
-              onTap: () {
-                launchUrl(Uri.parse("https://ente.io"));
-              },
-              child: Padding(
-                padding:
-                    const EdgeInsets.symmetric(vertical: 12.0, horizontal: 6),
-                child: Column(
-                  children: [
-                    StyledText(
-                      text: l10n.supportDevs,
-                      style: getEnteTextTheme(context).large,
-                      tags: {
-                        'bold-green': StyledTextTag(
-                          style: TextStyle(
-                            fontWeight: FontWeight.bold,
-                            color: getEnteColorScheme(context).primaryGreen,
-                          ),
-                        ),
-                      },
-                    ),
-                    const Padding(padding: EdgeInsets.all(6)),
-                        Text(
-                            l10n.supportDiscount,
-                            textAlign: TextAlign.center,
-                            style: const TextStyle(
-                              color: Colors.grey,
-                            ),
-                          )
-                  ],
+      onTap: () {
+        launchUrl(Uri.parse("https://ente.io"));
+      },
+      child: Padding(
+        padding: const EdgeInsets.symmetric(vertical: 12.0, horizontal: 6),
+        child: Column(
+          crossAxisAlignment: CrossAxisAlignment.start,
+          children: [
+            StyledText(
+              text: l10n.supportDevs,
+              style: getEnteTextTheme(context).large,
+              tags: {
+                'bold-green': StyledTextTag(
+                  style: TextStyle(
+                    fontWeight: FontWeight.bold,
+                    color: getEnteColorScheme(context).primaryGreen,
+                  ),
                 ),
+              },
+            ),
+            const Padding(padding: EdgeInsets.all(6)),
+            Text(
+              l10n.supportDiscount,
+              style: const TextStyle(
+                color: Colors.grey,
               ),
-            );
+            ),
+          ],
+        ),
+      ),
+    );
   }
 }

+ 2 - 3
lib/ui/settings_page.dart

@@ -25,7 +25,6 @@ import 'package:ente_auth/utils/navigation_util.dart';
 import 'package:flutter/foundation.dart';
 import 'package:flutter/material.dart';
 
-
 class SettingsPage extends StatelessWidget {
   final ValueNotifier<String?> emailNotifier;
 
@@ -81,12 +80,12 @@ class SettingsPage extends StatelessWidget {
     } else {
       contents.addAll([
         NotificationWidget(
-          startIcon: Icons.account_box_outlined,
+          startIcon: Icons.account_circle_sharp,
           actionIcon: Icons.arrow_forward,
           text: context.l10n.signInToBackup,
           type: NotificationType.notice,
           onTap: () async {
-             ButtonResult? result = await showChoiceActionSheet(
+            ButtonResult? result = await showChoiceActionSheet(
               context,
               title: context.l10n.warning,
               body: context.l10n.sigInBackupReminder,

+ 1 - 1
lib/utils/dialog_util.dart

@@ -224,7 +224,7 @@ ProgressDialog createProgressDialog(
   );
   dialog.style(
     message: message,
-    messageTextStyle: Theme.of(context).textTheme.bodySmall,
+    messageTextStyle: Theme.of(context).textTheme.labelMedium,
     backgroundColor: Theme.of(context).dialogTheme.backgroundColor,
     progressWidget: const EnteLoadingWidget(),
     borderRadius: 10,