mirror of
https://github.com/immich-app/immich.git
synced 2025-12-17 09:13:17 +03:00
feat: scroll to top & view in timeline (#20274)
* feat: scroll to top & view in timeline * use EventStream * refactor: event invocation and listerner * fix: correct parent routing
This commit is contained in:
@@ -26,9 +26,10 @@ class AppNavigationObserver extends AutoRouterObserver {
|
||||
void didPush(Route route, Route? previousRoute) {
|
||||
_handleLockedViewState(route, previousRoute);
|
||||
_handleDriftLockedFolderState(route, previousRoute);
|
||||
Future(
|
||||
() => ref.read(currentRouteNameProvider.notifier).state = route.settings.name,
|
||||
);
|
||||
Future(() {
|
||||
ref.read(currentRouteNameProvider.notifier).state = route.settings.name;
|
||||
ref.read(previousRouteNameProvider.notifier).state = previousRoute?.settings.name;
|
||||
});
|
||||
}
|
||||
|
||||
_handleLockedViewState(Route route, Route? previousRoute) {
|
||||
|
||||
Reference in New Issue
Block a user