From cea9e025a3a9d59a96639b123005a3eaaed6527e Mon Sep 17 00:00:00 2001 From: vishnukvmd Date: Sat, 18 Jun 2022 17:53:51 +0530 Subject: [PATCH] Fix cases --- lib/ui/app_update_dialog.dart | 4 ++-- lib/ui/email_entry_page.dart | 6 +++--- lib/ui/exif_info_dialog.dart | 2 +- lib/ui/image_editor_page.dart | 2 +- lib/ui/payment/stripe_subscription_page.dart | 12 ++++++------ lib/ui/recovery_page.dart | 2 +- lib/ui/settings/info_section_widget.dart | 2 +- lib/ui/settings/security_section_widget.dart | 4 ++-- lib/ui/settings/support_section_widget.dart | 2 +- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/lib/ui/app_update_dialog.dart b/lib/ui/app_update_dialog.dart index e68492028..8577d9fbb 100644 --- a/lib/ui/app_update_dialog.dart +++ b/lib/ui/app_update_dialog.dart @@ -157,7 +157,7 @@ class _ApkDownloaderDialogState extends State { actions: [ TextButton( child: Text( - "ignore", + "Ignore", style: TextStyle( color: Colors.white, ), @@ -169,7 +169,7 @@ class _ApkDownloaderDialogState extends State { ), TextButton( child: Text( - "retry", + "Retry", style: TextStyle( color: Theme.of(context).buttonColor, ), diff --git a/lib/ui/email_entry_page.dart b/lib/ui/email_entry_page.dart index 24adabab9..3f0be876c 100644 --- a/lib/ui/email_entry_page.dart +++ b/lib/ui/email_entry_page.dart @@ -460,7 +460,7 @@ class _EmailEntryPageState extends State { MaterialPageRoute( builder: (BuildContext context) { return WebPage( - "encryption", + "Encryption", "https://ente.io/architecture", ); }, @@ -528,7 +528,7 @@ class PricingWidget extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ Text( - "pricing", + "Pricing", style: TextStyle( fontWeight: FontWeight.bold, fontSize: 18, @@ -561,7 +561,7 @@ class PricingWidget extends StatelessWidget { ), Padding(padding: EdgeInsets.all(1)), Text( - "close", + "Close", style: TextStyle( color: Colors.white38, ), diff --git a/lib/ui/exif_info_dialog.dart b/lib/ui/exif_info_dialog.dart index 3ade6505b..1a0010a66 100644 --- a/lib/ui/exif_info_dialog.dart +++ b/lib/ui/exif_info_dialog.dart @@ -34,7 +34,7 @@ class _ExifInfoDialogState extends State { actions: [ TextButton( child: Text( - "close", + "Close", style: Theme.of(context).textTheme.bodyText1, ), onPressed: () { diff --git a/lib/ui/image_editor_page.dart b/lib/ui/image_editor_page.dart index bb69bbb4e..5e9d376cc 100644 --- a/lib/ui/image_editor_page.dart +++ b/lib/ui/image_editor_page.dart @@ -403,7 +403,7 @@ class _ImageEditorPageState extends State { SizedBox( width: 40, child: Text( - "color", + "Color", style: subtitle2.copyWith( color: subtitle2.color.withOpacity(0.8), ), diff --git a/lib/ui/payment/stripe_subscription_page.dart b/lib/ui/payment/stripe_subscription_page.dart index b2b981701..26e173334 100644 --- a/lib/ui/payment/stripe_subscription_page.dart +++ b/lib/ui/payment/stripe_subscription_page.dart @@ -376,18 +376,18 @@ class _StripeSubscriptionPageState extends State { var choice = await showChoiceDialog( context, title, - "are you sure you want to renew?", - firstAction: "no", - secondAction: "yes", + "Are you sure you want to renew?", + firstAction: "No", + secondAction: "Yes", ); confirmAction = choice == DialogUserChoice.secondChoice; } else { var choice = await showChoiceDialog( context, title, - 'are you sure you want to cancel?', - firstAction: 'yes, cancel', - secondAction: 'no', + 'Are you sure you want to cancel?', + firstAction: 'Yes, cancel', + secondAction: 'No', actionType: ActionType.critical, ); confirmAction = choice == DialogUserChoice.firstChoice; diff --git a/lib/ui/recovery_page.dart b/lib/ui/recovery_page.dart index cea85e55d..1e8c67da2 100644 --- a/lib/ui/recovery_page.dart +++ b/lib/ui/recovery_page.dart @@ -70,7 +70,7 @@ class _RecoveryPageState extends State { if (e is AssertionError) { errMessage = '$errMessage : ${e.message}'; } - showErrorDialog(context, "incorrect recovery key", errMessage); + showErrorDialog(context, "Incorrect recovery key", errMessage); } }, ), diff --git a/lib/ui/settings/info_section_widget.dart b/lib/ui/settings/info_section_widget.dart index 39430ddfd..401eef8d3 100644 --- a/lib/ui/settings/info_section_widget.dart +++ b/lib/ui/settings/info_section_widget.dart @@ -84,7 +84,7 @@ class InfoSectionWidget extends StatelessWidget { behavior: HitTestBehavior.translucent, onTap: () async { final dialog = - createProgressDialog(context, "checking..."); + createProgressDialog(context, "Checking..."); await dialog.show(); final shouldUpdate = await UpdateService.instance.shouldUpdate(); diff --git a/lib/ui/settings/security_section_widget.dart b/lib/ui/settings/security_section_widget.dart index f97b77410..62139d4d8 100644 --- a/lib/ui/settings/security_section_widget.dart +++ b/lib/ui/settings/security_section_widget.dart @@ -285,7 +285,7 @@ class _SecuritySectionWidgetState extends State { actions: [ TextButton( child: Text( - "no", + "No", style: TextStyle( color: Theme.of(context).buttonColor, ), @@ -296,7 +296,7 @@ class _SecuritySectionWidgetState extends State { ), TextButton( child: Text( - "yes", + "Yes", style: TextStyle( color: Colors.red, ), diff --git a/lib/ui/settings/support_section_widget.dart b/lib/ui/settings/support_section_widget.dart index b8d7e799e..afebbbe83 100644 --- a/lib/ui/settings/support_section_widget.dart +++ b/lib/ui/settings/support_section_widget.dart @@ -56,7 +56,7 @@ class SupportSectionWidget extends StatelessWidget { final url = isLoggedIn ? endpoint + "?token=" + Configuration.instance.getToken() : kRoadmapURL; - return WebPage("roadmap", url); + return WebPage("Roadmap", url); }, ), );