feat: Android TV support (#503)

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2025-09-28 21:07:49 +02:00 committed by GitHub
parent 7ab8c015b9
commit c299492d6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
168 changed files with 12019 additions and 3073 deletions

View file

@ -18,6 +18,7 @@ class FladderImage extends ConsumerWidget {
final AlignmentGeometry? alignment;
final bool disableBlur;
final bool blurOnly;
final int? decodeHeight;
const FladderImage({
required this.image,
this.frameBuilder,
@ -29,6 +30,7 @@ class FladderImage extends ConsumerWidget {
this.alignment,
this.disableBlur = false,
this.blurOnly = false,
this.decodeHeight = 400,
super.key,
});
@ -48,20 +50,23 @@ class FladderImage extends ConsumerWidget {
Image(
image: BlurHashImage(
newImage.hash,
decodingHeight: 24,
decodingWidth: 24,
decodingHeight: 16,
decodingWidth: 16,
),
fit: blurFit ?? fit,
height: 16,
),
if (!blurOnly && imageProvider != null)
FadeInImage(
placeholder: MemoryImage(kTransparentImage),
fit: fit,
placeholderFit: fit,
excludeFromSemantics: true,
alignment: alignment ?? Alignment.center,
imageErrorBuilder: imageErrorBuilder,
image: imageProvider,
image: ResizeImage(
imageProvider,
height: decodeHeight,
),
)
],
);