fix(mobile): stack count reset when navigating to library (#4647)

Co-authored-by: shalong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong 2023-10-26 14:19:06 +00:00 committed by GitHub
parent cb0e37e76e
commit b49b10141e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 52 additions and 23 deletions

View file

@ -104,16 +104,16 @@ class ThumbnailImage extends StatelessWidget {
right: 5,
child: Row(
children: [
if (asset.stackCount > 1)
if (asset.stackChildrenCount > 1)
Text(
"${asset.stackCount}",
"${asset.stackChildrenCount}",
style: const TextStyle(
color: Colors.white,
fontSize: 10,
fontWeight: FontWeight.bold,
),
),
if (asset.stackCount > 1)
if (asset.stackChildrenCount > 1)
const SizedBox(
width: 3,
),
@ -233,7 +233,7 @@ class ThumbnailImage extends StatelessWidget {
),
),
if (!asset.isImage) buildVideoIcon(),
if (asset.isImage && asset.stackCount > 0) buildStackIcon(),
if (asset.isImage && asset.stackChildrenCount > 0) buildStackIcon(),
],
),
);