add hero animation for memory thumbnail
This commit is contained in:
parent
65426cc5b4
commit
0a4910372f
1 changed files with 8 additions and 4 deletions
|
@ -76,6 +76,7 @@ class _MemoryCoverWidgetNewState extends State<MemoryCoverWidgetNew> {
|
|||
spreadRadius: MemoryCoverWidgetNew.centerStrokeWidth,
|
||||
blurRadius: 0,
|
||||
),
|
||||
// ...shadowFloatLight,
|
||||
],
|
||||
borderRadius: BorderRadius.circular(5),
|
||||
),
|
||||
|
@ -191,10 +192,13 @@ class _MemoryCoverWidgetNewState extends State<MemoryCoverWidgetNew> {
|
|||
),
|
||||
);
|
||||
},
|
||||
child: ThumbnailWidget(
|
||||
memory.file,
|
||||
shouldShowArchiveStatus: false,
|
||||
key: Key("memories" + memory.file.tag),
|
||||
child: Hero(
|
||||
tag: "memories" + memory.file.tag,
|
||||
child: ThumbnailWidget(
|
||||
memory.file,
|
||||
shouldShowArchiveStatus: false,
|
||||
key: Key("memories" + memory.file.tag),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue