mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-25 08:24:43 +01:00
Hide thumbnail after large image loaded in viewer
This commit is contained in:
parent
1926bdd8a6
commit
c8f761285c
1 changed files with 28 additions and 25 deletions
|
@ -136,7 +136,9 @@ class _RemoteImageViewerState extends State<RemoteImageViewer> {
|
||||||
child: Stack(
|
child: Stack(
|
||||||
fit: StackFit.expand,
|
fit: StackFit.expand,
|
||||||
children: [
|
children: [
|
||||||
Hero(
|
Opacity(
|
||||||
|
opacity: !_isHeroDone || !_isLoaded ? 1 : 0,
|
||||||
|
child: Hero(
|
||||||
tag: flutter_util.getImageHeroTag(widget.file),
|
tag: flutter_util.getImageHeroTag(widget.file),
|
||||||
flightShuttleBuilder: (flightContext, animation, flightDirection,
|
flightShuttleBuilder: (flightContext, animation, flightDirection,
|
||||||
fromHeroContext, toHeroContext) {
|
fromHeroContext, toHeroContext) {
|
||||||
|
@ -164,6 +166,7 @@ class _RemoteImageViewerState extends State<RemoteImageViewer> {
|
||||||
imageRenderMethodForWeb: ImageRenderMethodForWeb.HttpGet,
|
imageRenderMethodForWeb: ImageRenderMethodForWeb.HttpGet,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
if (_isHeroDone)
|
if (_isHeroDone)
|
||||||
mod.CachedNetworkImage(
|
mod.CachedNetworkImage(
|
||||||
fit: BoxFit.contain,
|
fit: BoxFit.contain,
|
||||||
|
|
Loading…
Add table
Reference in a new issue