Browse Source

Tweak UI for delete empty album progress

Neeraj Gupta 2 years ago
parent
commit
5f8ef8a3d9

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

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