mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08: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) {
|
||||
final logo = item.getPosters?.logo;
|
||||
final size = MediaQuery.sizeOf(context);
|
||||
final maxHeight = size.height * 0.45;
|
||||
final textWidget = Container(
|
||||
height: maxHeight,
|
||||
alignment: imageAlignment,
|
||||
final maxHeight = size.height * 0.25;
|
||||
final textWidget = ConstrainedBox(
|
||||
constraints: BoxConstraints(maxHeight: maxHeight),
|
||||
child: Text(
|
||||
item.parentBaseModel.name,
|
||||
textAlign: TextAlign.start,
|
||||
|
|
@ -35,7 +34,7 @@ class ItemLogo extends StatelessWidget {
|
|||
);
|
||||
return logo != null
|
||||
? ConstrainedBox(
|
||||
constraints: BoxConstraints(maxWidth: size.width * 0.35, maxHeight: maxHeight),
|
||||
constraints: BoxConstraints(maxWidth: size.width * 0.25, maxHeight: maxHeight),
|
||||
child: FladderImage(
|
||||
image: logo,
|
||||
disableBlur: true,
|
||||
|
|
|
|||
|
|
@ -262,17 +262,24 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
),
|
||||
),
|
||||
if (currentItem != null)
|
||||
ConstrainedBox(
|
||||
constraints: BoxConstraints(
|
||||
maxHeight: 150.clamp(50, MediaQuery.sizeOf(context).height * 0.25).toDouble(),
|
||||
),
|
||||
child: ItemLogo(
|
||||
item: currentItem,
|
||||
imageAlignment: Alignment.topLeft,
|
||||
textStyle: Theme.of(context).textTheme.headlineLarge,
|
||||
Expanded(
|
||||
child: Row(
|
||||
children: [
|
||||
Flexible(
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(
|
||||
maxHeight: 150.clamp(50, MediaQuery.sizeOf(context).height * 0.25).toDouble(),
|
||||
),
|
||||
child: ItemLogo(
|
||||
item: currentItem,
|
||||
imageAlignment: Alignment.topLeft,
|
||||
textStyle: Theme.of(context).textTheme.headlineLarge,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
const Spacer(),
|
||||
if (AdaptiveLayout.of(context).inputDevice == InputDevice.touch)
|
||||
Align(
|
||||
alignment: Alignment.centerRight,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue