mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
fix: Small size exception
This commit is contained in:
parent
e3feae75de
commit
9eed99c8e0
1 changed files with 2 additions and 1 deletions
|
|
@ -227,6 +227,7 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
|
||||
Widget topButtons(BuildContext context) {
|
||||
final currentItem = ref.watch(playBackModel.select((value) => value?.item));
|
||||
final maxHeight = 150.clamp(50, (MediaQuery.sizeOf(context).height * 0.25).clamp(51, double.maxFinite)).toDouble();
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
|
|
@ -268,7 +269,7 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
Flexible(
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(
|
||||
maxHeight: 150.clamp(50, MediaQuery.sizeOf(context).height * 0.25).toDouble(),
|
||||
maxHeight: maxHeight,
|
||||
),
|
||||
child: ItemLogo(
|
||||
item: currentItem,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue