mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-14 01:37:07 -07:00
fix: Small fix for videoplayer logo
This commit is contained in:
parent
0f6d24dc5a
commit
e3feae75de
2 changed files with 20 additions and 14 deletions
|
|
@ -18,10 +18,9 @@ class ItemLogo extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final logo = item.getPosters?.logo;
|
final logo = item.getPosters?.logo;
|
||||||
final size = MediaQuery.sizeOf(context);
|
final size = MediaQuery.sizeOf(context);
|
||||||
final maxHeight = size.height * 0.45;
|
final maxHeight = size.height * 0.25;
|
||||||
final textWidget = Container(
|
final textWidget = ConstrainedBox(
|
||||||
height: maxHeight,
|
constraints: BoxConstraints(maxHeight: maxHeight),
|
||||||
alignment: imageAlignment,
|
|
||||||
child: Text(
|
child: Text(
|
||||||
item.parentBaseModel.name,
|
item.parentBaseModel.name,
|
||||||
textAlign: TextAlign.start,
|
textAlign: TextAlign.start,
|
||||||
|
|
@ -35,7 +34,7 @@ class ItemLogo extends StatelessWidget {
|
||||||
);
|
);
|
||||||
return logo != null
|
return logo != null
|
||||||
? ConstrainedBox(
|
? ConstrainedBox(
|
||||||
constraints: BoxConstraints(maxWidth: size.width * 0.35, maxHeight: maxHeight),
|
constraints: BoxConstraints(maxWidth: size.width * 0.25, maxHeight: maxHeight),
|
||||||
child: FladderImage(
|
child: FladderImage(
|
||||||
image: logo,
|
image: logo,
|
||||||
disableBlur: true,
|
disableBlur: true,
|
||||||
|
|
|
||||||
|
|
@ -262,17 +262,24 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (currentItem != null)
|
if (currentItem != null)
|
||||||
ConstrainedBox(
|
Expanded(
|
||||||
constraints: BoxConstraints(
|
child: Row(
|
||||||
maxHeight: 150.clamp(50, MediaQuery.sizeOf(context).height * 0.25).toDouble(),
|
children: [
|
||||||
),
|
Flexible(
|
||||||
child: ItemLogo(
|
child: ConstrainedBox(
|
||||||
item: currentItem,
|
constraints: BoxConstraints(
|
||||||
imageAlignment: Alignment.topLeft,
|
maxHeight: 150.clamp(50, MediaQuery.sizeOf(context).height * 0.25).toDouble(),
|
||||||
textStyle: Theme.of(context).textTheme.headlineLarge,
|
),
|
||||||
|
child: ItemLogo(
|
||||||
|
item: currentItem,
|
||||||
|
imageAlignment: Alignment.topLeft,
|
||||||
|
textStyle: Theme.of(context).textTheme.headlineLarge,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Spacer(),
|
|
||||||
if (AdaptiveLayout.of(context).inputDevice == InputDevice.touch)
|
if (AdaptiveLayout.of(context).inputDevice == InputDevice.touch)
|
||||||
Align(
|
Align(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue