1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-26 10:50:29 +02:00

fix(mobile): fix render overflow for small screens

Needed for SearchPage test to not throw overflow error
This commit is contained in:
johnstef99 2024-12-24 03:33:51 +02:00
parent 684d63c810
commit 649f983393

View File

@ -24,7 +24,7 @@ class FilterBottomSheetScaffold extends StatelessWidget {
if (expanded != null && expanded == true) { if (expanded != null && expanded == true) {
return Expanded(child: child); return Expanded(child: child);
} }
return child; return Flexible(child: child);
} }
return SafeArea( return SafeArea(
@ -44,21 +44,26 @@ class FilterBottomSheetScaffold extends StatelessWidget {
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
OutlinedButton( Flexible(
child: OutlinedButton(
onPressed: () { onPressed: () {
onClear(); onClear();
context.pop(); context.pop();
}, },
child: const Text('action_common_clear').tr(), child: const Text('action_common_clear').tr(),
), ),
),
const SizedBox(width: 8), const SizedBox(width: 8),
ElevatedButton( Flexible(
child: ElevatedButton(
key: const Key('search_filter_apply'),
onPressed: () { onPressed: () {
onSearch(); onSearch();
context.pop(); context.pop();
}, },
child: const Text('search_filter_apply').tr(), child: const Text('search_filter_apply').tr(),
), ),
),
], ],
), ),
), ),