vishnukvmd 3 роки тому
батько
коміт
dc5dffd601

+ 1 - 1
lib/ui/deduplicate_page.dart

@@ -64,7 +64,7 @@ class _DeduplicatePageState extends State<DeduplicatePage> {
     _duplicates =
         DeduplicationService.instance.clubDuplicatesByTime(widget.duplicates);
     _selectAllFilesButFirst();
-    showToast("long-press on an item to view in full-screen");
+    showToast("Long-press on an item to view in full-screen");
   }
 
   void _selectAllFilesButFirst() {

+ 1 - 1
lib/ui/payment/stripe_subscription_page.dart

@@ -94,7 +94,7 @@ class _StripeSubscriptionPageState extends State<StripeSubscriptionPage> {
     try {
       await _fetchSub();
     } catch (e) {
-      showToast("failed to refresh subscription");
+      showToast("Failed to refresh subscription");
     }
     await _dialog.hide();
 

+ 1 - 1
lib/ui/recovery_key_page.dart

@@ -117,7 +117,7 @@ class _RecoveryKeyPageState extends State<RecoveryKeyPage> {
                       onTap: () async {
                         await Clipboard.setData(
                             ClipboardData(text: recoveryKey));
-                        showToast("recovery key copied to clipboard");
+                        showToast("Recovery key copied to clipboard");
                         setState(() {
                           _hasTriedToSave = true;
                         });

+ 2 - 2
lib/ui/recovery_page.dart

@@ -35,12 +35,12 @@ class _RecoveryPageState extends State<RecoveryPage> {
           isFormValid: _recoveryKey.text.isNotEmpty,
           buttonText: 'Recover',
           onPressedFunction: () async {
-            final dialog = createProgressDialog(context, "decrypting...");
+            final dialog = createProgressDialog(context, "Decrypting...");
             await dialog.show();
             try {
               await Configuration.instance.recover(_recoveryKey.text.trim());
               await dialog.hide();
-              showToast("recovery successful!");
+              showToast("Recovery successful!");
               Navigator.of(context).pushReplacement(
                 MaterialPageRoute(
                   builder: (BuildContext context) {

+ 1 - 1
lib/ui/set_wallpaper_dialog.dart

@@ -75,7 +75,7 @@ class _SetWallpaperDialogState extends State<SetWallpaperDialog> {
               await WallpaperManagerFlutter().setwallpaperfromFile(
                   await getFile(widget.file), _lockscreenValue);
               await dialog.hide();
-              showToast("wallpaper set successfully");
+              showToast("Wallpaper set successfully");
             } catch (e, s) {
               await dialog.hide();
               Logger("SetWallpaperDialog").severe(e, s);

+ 1 - 1
lib/ui/settings/info_section_widget.dart

@@ -99,7 +99,7 @@ class InfoSectionWidget extends StatelessWidget {
                           barrierColor: Colors.black.withOpacity(0.85),
                         );
                       } else {
-                        showToast("you are on the latest version");
+                        showToast("You are on the latest version");
                       }
                     },
                     child: SettingsTextItem(

+ 1 - 1
lib/ui/shared_collections_gallery.dart

@@ -239,7 +239,7 @@ class _SharedCollectionGalleryState extends State<SharedCollectionGallery>
                 Color(0xFF1DB954),
               ],
               onTap: () async {
-                await showToast("select an album on ente to share",
+                await showToast("Select an album on ente to share",
                     toastLength: Toast.LENGTH_LONG);
                 Bus.instance.fire(
                     TabChangedEvent(1, TabChangedEventSource.collections_page));

+ 1 - 1
lib/ui/two_factor_setup_page.dart

@@ -129,7 +129,7 @@ class _TwoFactorSetupPageState extends State<TwoFactorSetupPage>
     return GestureDetector(
       onTap: () async {
         await Clipboard.setData(ClipboardData(text: widget.secretCode));
-        showToast("code copied to clipboard");
+        showToast("Code copied to clipboard");
       },
       child: Column(
         mainAxisAlignment: MainAxisAlignment.center,

+ 2 - 2
lib/ui/zoomable_live_image.dart

@@ -115,7 +115,7 @@ class _ZoomableLiveImageState extends State<ZoomableLiveImage>
     }
     _isLoadingVideoPlayer = true;
     if (_file.isRemoteFile() && !(await isFileCached(_file, liveVideo: true))) {
-      showToast("downloading...", toastLength: Toast.LENGTH_LONG);
+      showToast("Downloading...", toastLength: Toast.LENGTH_LONG);
     }
 
     var videoFile = await getFile(widget.file, liveVideo: true)
@@ -159,7 +159,7 @@ class _ZoomableLiveImageState extends State<ZoomableLiveImage>
     var _preferences = await SharedPreferences.getInstance();
     int promptTillNow = _preferences.getInt(kLivePhotoToastCounterKey) ?? 0;
     if (promptTillNow < kMaxLivePhotoToastCount) {
-      showToast("press and hold to play video");
+      showToast("Press and hold to play video");
       _preferences.setInt(kLivePhotoToastCounterKey, promptTillNow + 1);
     }
   }

+ 1 - 1
lib/utils/delete_file_util.dart

@@ -307,7 +307,7 @@ Future<bool> deleteLocalFiles(
     Bus.instance.fire(LocalPhotosUpdatedEvent(deletedFiles));
     return true;
   } else {
-    showToast("could not free up space");
+    showToast("Could not free up space");
     return false;
   }
 }