Browse Source

chore(web): better action button consistency (#3633)

Co-authored-by: Alex Tran <Alex.Tran@conductix.com>
Alex 1 year ago
parent
commit
f4475549d6
1 changed files with 6 additions and 6 deletions
  1. 6 6
      mobile/lib/modules/home/ui/control_bottom_app_bar.dart

+ 6 - 6
mobile/lib/modules/home/ui/control_bottom_app_bar.dart

@@ -54,6 +54,12 @@ class ControlBottomAppBar extends ConsumerWidget {
             label: "control_bottom_app_bar_share".tr(),
             onPressed: enabled ? onShare : null,
           ),
+          if (hasRemote)
+            ControlBoxButton(
+              iconData: Icons.archive,
+              label: "control_bottom_app_bar_archive".tr(),
+              onPressed: enabled ? onArchive : null,
+            ),
           if (hasRemote)
             ControlBoxButton(
               iconData: Icons.favorite_border_rounded,
@@ -89,12 +95,6 @@ class ControlBottomAppBar extends ConsumerWidget {
                       )
                   : null,
             ),
-          if (hasRemote)
-            ControlBoxButton(
-              iconData: Icons.archive,
-              label: "control_bottom_app_bar_archive".tr(),
-              onPressed: enabled ? onArchive : null,
-            ),
         ],
       );
     }