mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-09 07:28:14 -07:00
feature: Add support for mediaSegments (#138)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
36758bd508
commit
5c560e54b5
28 changed files with 6823 additions and 8312 deletions
|
|
@ -6,7 +6,6 @@ import 'package:transparent_image/transparent_image.dart';
|
|||
|
||||
import 'package:fladder/models/items/images_models.dart';
|
||||
import 'package:fladder/providers/settings/client_settings_provider.dart';
|
||||
import 'package:fladder/util/adaptive_layout.dart';
|
||||
|
||||
class FladderImage extends ConsumerWidget {
|
||||
final ImageData? image;
|
||||
|
|
@ -29,7 +28,6 @@ class FladderImage extends ConsumerWidget {
|
|||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final useBluredPlaceHolder = ref.watch(clientSettingsProvider.select((value) => value.blurPlaceHolders));
|
||||
final newImage = image;
|
||||
final blurSize = AdaptiveLayout.of(context).isDesktop ? 32 : 16;
|
||||
if (newImage == null) {
|
||||
return placeHolder ?? Container();
|
||||
} else {
|
||||
|
|
@ -44,8 +42,6 @@ class FladderImage extends ConsumerWidget {
|
|||
filterQuality: FilterQuality.low,
|
||||
image: BlurHashImage(
|
||||
newImage.hash,
|
||||
decodingWidth: blurSize,
|
||||
decodingHeight: blurSize,
|
||||
),
|
||||
),
|
||||
if (!blurOnly)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue