Jelajahi Sumber

Tweak UI for delete empty album progress

Neeraj Gupta 2 tahun lalu
induk
melakukan
5f8ef8a3d9

+ 7 - 3
lib/ui/components/button_widget.dart

@@ -338,9 +338,13 @@ class _ButtonChildWidgetState extends State<ButtonChildWidget> {
                                         String value,
                                         String value,
                                         Widget? child,
                                         Widget? child,
                                       ) {
                                       ) {
-                                        return Text(
-                                          value,
-                                          style: lightTextTheme.smallBold,
+                                        return Padding(
+                                          padding:
+                                              const EdgeInsets.only(right: 8.0),
+                                          child: Text(
+                                            value,
+                                            style: lightTextTheme.smallBold,
+                                          ),
                                         );
                                         );
                                       },
                                       },
                                     ),
                                     ),

+ 2 - 2
lib/ui/viewer/actions/delete_empty_albums.dart

@@ -73,7 +73,7 @@ class _DeleteEmptyAlbumsState extends State<DeleteEmptyAlbums> {
                 },
                 },
               )
               )
             ],
             ],
-            title: "Delete empty albums",
+            title: "Delete empty albums?",
             body:
             body:
                 "This will delete all empty albums. This is useful when you want to reduce the clutter in your album list.",
                 "This will delete all empty albums. This is useful when you want to reduce the clutter in your album list.",
             actionSheetType: ActionSheetType.defaultActionSheet,
             actionSheetType: ActionSheetType.defaultActionSheet,
@@ -92,7 +92,7 @@ class _DeleteEmptyAlbumsState extends State<DeleteEmptyAlbums> {
       if (mounted && !_isCancelled) {
       if (mounted && !_isCancelled) {
         _deleteProgress.value =
         _deleteProgress.value =
             "Deleting ${(i + 1).toString().padLeft(collections.length.toString().length, '0')} / "
             "Deleting ${(i + 1).toString().padLeft(collections.length.toString().length, '0')} / "
-            "${collections.length} ";
+            "${collections.length}";
         try {
         try {
           await CollectionsService.instance
           await CollectionsService.instance
               .trashEmptyCollection(collections[i].collection);
               .trashEmptyCollection(collections[i].collection);