From f6ef226b6498c2fd36d971e4fb4fa47182eb66cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Wawrzyk?= Date: Mon, 11 Dec 2023 19:53:11 +0100 Subject: [PATCH] chore(mobile): put delete button before metadata editing (#5633) --- .../home/ui/control_bottom_app_bar.dart | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/mobile/lib/modules/home/ui/control_bottom_app_bar.dart b/mobile/lib/modules/home/ui/control_bottom_app_bar.dart index 9f823b7732..7b22aaa83f 100644 --- a/mobile/lib/modules/home/ui/control_bottom_app_bar.dart +++ b/mobile/lib/modules/home/ui/control_bottom_app_bar.dart @@ -92,18 +92,6 @@ class ControlBottomAppBar extends ConsumerWidget { .tr(), onPressed: enabled ? onFavorite : null, ), - if (hasRemote && onEditTime != null) - ControlBoxButton( - iconData: Icons.edit_calendar_outlined, - label: "control_bottom_app_bar_edit_time".tr(), - onPressed: enabled ? onEditTime : null, - ), - if (hasRemote && onEditLocation != null) - ControlBoxButton( - iconData: Icons.edit_location_alt_outlined, - label: "control_bottom_app_bar_edit_location".tr(), - onPressed: enabled ? onEditLocation : null, - ), if (onDelete != null) ControlBoxButton( iconData: Icons.delete_outline_rounded, @@ -125,6 +113,18 @@ class ControlBottomAppBar extends ConsumerWidget { } : null, ), + if (hasRemote && onEditTime != null) + ControlBoxButton( + iconData: Icons.edit_calendar_outlined, + label: "control_bottom_app_bar_edit_time".tr(), + onPressed: enabled ? onEditTime : null, + ), + if (hasRemote && onEditLocation != null) + ControlBoxButton( + iconData: Icons.edit_location_alt_outlined, + label: "control_bottom_app_bar_edit_location".tr(), + onPressed: enabled ? onEditLocation : null, + ), if (!hasLocal && selectionAssetState.selectedCount > 1 && onStack != null)