mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07:00
fix: Videoplayer large logo
This commit is contained in:
parent
b977bfc319
commit
bfa7607681
3 changed files with 28 additions and 22 deletions
|
|
@ -17,8 +17,10 @@ class ItemLogo extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final logo = item.getPosters?.logo;
|
||||
final size = MediaQuery.sizeOf(context);
|
||||
final maxHeight = size.height * 0.45;
|
||||
final textWidget = Container(
|
||||
height: 512,
|
||||
height: maxHeight,
|
||||
alignment: imageAlignment,
|
||||
child: Text(
|
||||
item.parentBaseModel.name,
|
||||
|
|
@ -33,13 +35,14 @@ class ItemLogo extends StatelessWidget {
|
|||
);
|
||||
return logo != null
|
||||
? ConstrainedBox(
|
||||
constraints: const BoxConstraints(maxWidth: 500, maxHeight: 500),
|
||||
constraints: BoxConstraints(maxWidth: size.width * 0.35, maxHeight: maxHeight),
|
||||
child: FladderImage(
|
||||
image: logo,
|
||||
disableBlur: true,
|
||||
alignment: imageAlignment,
|
||||
stackFit: StackFit.passthrough,
|
||||
alignment: Alignment.bottomLeft,
|
||||
imageErrorBuilder: (context, object, stack) => textWidget,
|
||||
placeHolder: const SizedBox(height: 0),
|
||||
placeHolder: textWidget,
|
||||
fit: BoxFit.contain,
|
||||
),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue