mirror of
https://github.com/immich-app/immich.git
synced 2025-01-21 11:12:45 +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:
parent
e477f99c7d
commit
734f8e02b5
1 changed files with 15 additions and 18 deletions
|
@ -54,7 +54,9 @@ class MemoryCard extends HookConsumerWidget {
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
ImageFiltered(
|
||||||
|
imageFilter: ImageFilter.blur(sigmaX: 30, sigmaY: 30),
|
||||||
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
image: DecorationImage(
|
image: DecorationImage(
|
||||||
image: CachedNetworkImageProvider(
|
image: CachedNetworkImageProvider(
|
||||||
|
@ -69,12 +71,7 @@ class MemoryCard extends HookConsumerWidget {
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: BackdropFilter(
|
child: Container(color: Colors.black.withOpacity(0.2)),
|
||||||
filter: ImageFilter.blur(sigmaX: 60, sigmaY: 60),
|
|
||||||
child: Container(
|
|
||||||
decoration:
|
|
||||||
BoxDecoration(color: Colors.black.withOpacity(0.25)),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
|
|
Loading…
Reference in a new issue