Browse Source

archived -> archive

vishnukvmd 3 years ago
parent
commit
b3ee84987c
2 changed files with 30 additions and 30 deletions
  1. 2 2
      lib/ui/archive_page.dart
  2. 28 28
      lib/ui/collections_gallery_widget.dart

+ 2 - 2
lib/ui/archive_page.dart

@@ -32,7 +32,7 @@ class ArchivePage extends StatelessWidget {
             visibility: kVisibilityArchive, limit: limit, asc: asc);
       },
       reloadEvent: Bus.instance.on<FilesUpdatedEvent>().where((event) =>
-      event.updatedFiles.firstWhere(
+          event.updatedFiles.firstWhere(
               (element) => element.uploadedFileID != null,
               orElse: () => null) !=
           null),
@@ -55,7 +55,7 @@ class ArchivePage extends StatelessWidget {
           height: Platform.isAndroid ? 80 : 100,
           child: GalleryAppBarWidget(
             appBarType,
-            "archived memories",
+            "archive",
             _selectedFiles,
           ),
         )

+ 28 - 28
lib/ui/collections_gallery_widget.dart

@@ -180,42 +180,42 @@ class _CollectionsGalleryWidgetState extends State<CollectionsGalleryWidget>
                   )
                 : nothingToSeeHere,
             Divider(),
+            Padding(padding: EdgeInsets.all(8)),
             OutlinedButton(
-              style: OutlinedButton.styleFrom(
-                shape: RoundedRectangleBorder(
-                  borderRadius: BorderRadius.circular(5),
-                ),
-                padding: EdgeInsets.fromLTRB(20, 10,20, 10),
-                side: BorderSide(
-                  width: 2,
-                  color: Colors.white12,
-                ),
-              ),
-              child: Row(
-                mainAxisAlignment: MainAxisAlignment.center,
-                crossAxisAlignment: CrossAxisAlignment.center,
-                mainAxisSize: MainAxisSize.min,
-                children: [
-                  Icon(
-                    Icons.archive_outlined,
-                    color: Colors.white,
+                style: OutlinedButton.styleFrom(
+                  shape: RoundedRectangleBorder(
+                    borderRadius: BorderRadius.circular(5),
+                  ),
+                  padding: EdgeInsets.fromLTRB(20, 10, 20, 10),
+                  side: BorderSide(
+                    width: 2,
+                    color: Colors.white12,
                   ),
-                  Padding(padding: EdgeInsets.all(6)),
-                  Text(
-                    "archived",
-                    style: TextStyle(
+                ),
+                child: Row(
+                  mainAxisAlignment: MainAxisAlignment.center,
+                  crossAxisAlignment: CrossAxisAlignment.center,
+                  mainAxisSize: MainAxisSize.min,
+                  children: const [
+                    Icon(
+                      Icons.archive_outlined,
                       color: Colors.white,
                     ),
-                  ),
-                ],
-              ),
-              onPressed: () async {
+                    Padding(padding: EdgeInsets.all(6)),
+                    Text(
+                      "archive",
+                      style: TextStyle(
+                        color: Colors.white,
+                      ),
+                    ),
+                  ],
+                ),
+                onPressed: () async {
                   routeToPage(
                     context,
                     ArchivePage(),
                   );
-                }
-            ),
+                }),
             Padding(padding: EdgeInsets.all(12)),
           ],
         ),