[mobile] Fix hero animation for on Ente section (#6499)
https://github.com/user-attachments/assets/1238695a-8e4a-44b3-99f1-569eacddcf1c
This commit is contained in:
@@ -4,6 +4,7 @@ import 'dart:math';
|
||||
import 'package:flutter/material.dart';
|
||||
import "package:flutter/services.dart";
|
||||
import "package:logging/logging.dart";
|
||||
import "package:photos/core/configuration.dart";
|
||||
import "package:photos/core/event_bus.dart";
|
||||
import "package:photos/events/clear_album_selections_event.dart";
|
||||
import "package:photos/generated/l10n.dart";
|
||||
@@ -98,10 +99,16 @@ class _CollectionsFlexiGridViewWidgetState
|
||||
|
||||
Future<void> _navigateToCollectionPage(Collection c) async {
|
||||
final thumbnail = await CollectionsService.instance.getCover(c);
|
||||
final bool isOwner = c.isOwner(Configuration.instance.getUserID()!);
|
||||
final String tagPrefix = (isOwner ? "collection" : "shared_collection") +
|
||||
widget.tag +
|
||||
"_" +
|
||||
c.id.toString();
|
||||
// ignore: unawaited_futures
|
||||
routeToPage(
|
||||
context,
|
||||
CollectionPage(
|
||||
tagPrefix: tagPrefix,
|
||||
CollectionWithThumbnail(c, thumbnail),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user