mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
fix(mobile): bottom app bar icons (#7147)
This commit is contained in:
parent
dabbd63a02
commit
0ca7adcdbf
@ -186,30 +186,42 @@ class ControlBottomAppBar extends ConsumerWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (hasRemote && onEditTime != null)
|
if (hasRemote && onEditTime != null)
|
||||||
ControlBoxButton(
|
ConstrainedBox(
|
||||||
iconData: Icons.edit_calendar_outlined,
|
constraints: const BoxConstraints(maxWidth: 95),
|
||||||
label: "control_bottom_app_bar_edit_time".tr(),
|
child: ControlBoxButton(
|
||||||
onPressed: enabled ? onEditTime : null,
|
iconData: Icons.edit_calendar_outlined,
|
||||||
|
label: "control_bottom_app_bar_edit_time".tr(),
|
||||||
|
onPressed: enabled ? onEditTime : null,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
if (hasRemote && onEditLocation != null)
|
if (hasRemote && onEditLocation != null)
|
||||||
ControlBoxButton(
|
ConstrainedBox(
|
||||||
iconData: Icons.edit_location_alt_outlined,
|
constraints: const BoxConstraints(maxWidth: 90),
|
||||||
label: "control_bottom_app_bar_edit_location".tr(),
|
child: ControlBoxButton(
|
||||||
onPressed: enabled ? onEditLocation : null,
|
iconData: Icons.edit_location_alt_outlined,
|
||||||
|
label: "control_bottom_app_bar_edit_location".tr(),
|
||||||
|
onPressed: enabled ? onEditLocation : null,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
if (!selectionAssetState.hasLocal &&
|
if (!selectionAssetState.hasLocal &&
|
||||||
selectionAssetState.selectedCount > 1 &&
|
selectionAssetState.selectedCount > 1 &&
|
||||||
onStack != null)
|
onStack != null)
|
||||||
ControlBoxButton(
|
ConstrainedBox(
|
||||||
iconData: Icons.filter_none_rounded,
|
constraints: const BoxConstraints(maxWidth: 90),
|
||||||
label: "control_bottom_app_bar_stack".tr(),
|
child: ControlBoxButton(
|
||||||
onPressed: enabled ? onStack : null,
|
iconData: Icons.filter_none_rounded,
|
||||||
|
label: "control_bottom_app_bar_stack".tr(),
|
||||||
|
onPressed: enabled ? onStack : null,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
if (onRemoveFromAlbum != null)
|
if (onRemoveFromAlbum != null)
|
||||||
ControlBoxButton(
|
ConstrainedBox(
|
||||||
iconData: Icons.delete_sweep_rounded,
|
constraints: const BoxConstraints(maxWidth: 90),
|
||||||
label: 'album_viewer_appbar_share_remove'.tr(),
|
child: ControlBoxButton(
|
||||||
onPressed: enabled ? onRemoveFromAlbum : null,
|
iconData: Icons.delete_sweep_rounded,
|
||||||
|
label: 'album_viewer_appbar_share_remove'.tr(),
|
||||||
|
onPressed: enabled ? onRemoveFromAlbum : null,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
if (selectionAssetState.hasLocal)
|
if (selectionAssetState.hasLocal)
|
||||||
ControlBoxButton(
|
ControlBoxButton(
|
||||||
@ -230,9 +242,9 @@ class ControlBottomAppBar extends ConsumerWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return DraggableScrollableSheet(
|
return DraggableScrollableSheet(
|
||||||
initialChildSize: hasRemote ? 0.30 : bottomPadding,
|
initialChildSize: hasRemote ? 0.35 : bottomPadding,
|
||||||
minChildSize: bottomPadding,
|
minChildSize: bottomPadding,
|
||||||
maxChildSize: hasRemote ? 0.60 : bottomPadding,
|
maxChildSize: hasRemote ? 0.65 : bottomPadding,
|
||||||
snap: true,
|
snap: true,
|
||||||
builder: (
|
builder: (
|
||||||
BuildContext context,
|
BuildContext context,
|
||||||
@ -257,9 +269,9 @@ class ControlBottomAppBar extends ConsumerWidget {
|
|||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
const CustomDraggingHandle(),
|
const CustomDraggingHandle(),
|
||||||
const SizedBox(height: 24),
|
const SizedBox(height: 12),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: 90,
|
height: 100,
|
||||||
child: ListView(
|
child: ListView(
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
scrollDirection: Axis.horizontal,
|
scrollDirection: Axis.horizontal,
|
||||||
|
Loading…
Reference in New Issue
Block a user