mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-10 16:00:28 -07: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) {
|
Widget topButtons(BuildContext context) {
|
||||||
final currentItem = ref.watch(playBackModel.select((value) => value?.item));
|
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(
|
return Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
gradient: LinearGradient(
|
gradient: LinearGradient(
|
||||||
|
|
@ -268,7 +269,7 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
||||||
Flexible(
|
Flexible(
|
||||||
child: ConstrainedBox(
|
child: ConstrainedBox(
|
||||||
constraints: BoxConstraints(
|
constraints: BoxConstraints(
|
||||||
maxHeight: 150.clamp(50, MediaQuery.sizeOf(context).height * 0.25).toDouble(),
|
maxHeight: maxHeight,
|
||||||
),
|
),
|
||||||
child: ItemLogo(
|
child: ItemLogo(
|
||||||
item: currentItem,
|
item: currentItem,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue