✨ Blurry attachment background
This commit is contained in:
parent
4146820be5
commit
fc5a79b29b
@ -45,11 +45,25 @@ class AttachmentItem extends StatelessWidget {
|
|||||||
case 'image':
|
case 'image':
|
||||||
return Hero(
|
return Hero(
|
||||||
tag: 'attachment-${data!.rid}-$tag',
|
tag: 'attachment-${data!.rid}-$tag',
|
||||||
child: AutoResizeUniversalImage(
|
child: Stack(
|
||||||
sn.getAttachmentUrl(data!.rid),
|
fit: StackFit.expand,
|
||||||
key: Key('attachment-${data!.rid}-$tag'),
|
children: [
|
||||||
fit: fit,
|
ImageFiltered(
|
||||||
filterQuality: filterQuality,
|
imageFilter: ImageFilter.blur(sigmaX: 20, sigmaY: 20),
|
||||||
|
child: AutoResizeUniversalImage(
|
||||||
|
sn.getAttachmentUrl(data!.rid),
|
||||||
|
key: Key('attachment-${data!.rid}-$tag-blur-background'),
|
||||||
|
fit: BoxFit.cover,
|
||||||
|
filterQuality: filterQuality,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
AutoResizeUniversalImage(
|
||||||
|
sn.getAttachmentUrl(data!.rid),
|
||||||
|
key: Key('attachment-${data!.rid}-$tag'),
|
||||||
|
fit: fit,
|
||||||
|
filterQuality: filterQuality,
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
case 'video':
|
case 'video':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user