1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-04 02:46:47 +01:00

fix(mobile): Uses ImageFiltered for performance (#3051)

* Uses ImageFiltered for performance

* values

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
martyfuhry 2023-06-30 14:49:17 -04:00 committed by GitHub
parent e477f99c7d
commit 734f8e02b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,9 @@ class MemoryCard extends HookConsumerWidget {
clipBehavior: Clip.hardEdge,
child: Stack(
children: [
Container(
ImageFiltered(
imageFilter: ImageFilter.blur(sigmaX: 30, sigmaY: 30),
child: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: CachedNetworkImageProvider(
@ -69,12 +71,7 @@ class MemoryCard extends HookConsumerWidget {
fit: BoxFit.cover,
),
),
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 60, sigmaY: 60),
child: Container(
decoration:
BoxDecoration(color: Colors.black.withOpacity(0.25)),
),
child: Container(color: Colors.black.withOpacity(0.2)),
),
),
GestureDetector(