From 03b70cf029e31169b4000f588b4ebf424903cf0d Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 22 Apr 2026 10:21:48 -0500 Subject: [PATCH] fix: jump to timeline on new auto_router update (#28022) --- .../presentation/widgets/memory/memory_bottom_info.widget.dart | 3 +-- mobile/lib/utils/action_button.utils.dart | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/mobile/lib/presentation/widgets/memory/memory_bottom_info.widget.dart b/mobile/lib/presentation/widgets/memory/memory_bottom_info.widget.dart index b514f9f0a5..9eb7792fb4 100644 --- a/mobile/lib/presentation/widgets/memory/memory_bottom_info.widget.dart +++ b/mobile/lib/presentation/widgets/memory/memory_bottom_info.widget.dart @@ -40,8 +40,7 @@ class DriftMemoryBottomInfo extends StatelessWidget { child: MaterialButton( minWidth: 0, onPressed: () async { - await context.maybePop(); - await context.navigateTo(const TabShellRoute(children: [MainTimelineRoute()])); + await context.router.navigate(const TabShellRoute(children: [MainTimelineRoute()])); EventStream.shared.emit(ScrollToDateEvent(fileCreatedDate)); }, shape: const CircleBorder(), diff --git a/mobile/lib/utils/action_button.utils.dart b/mobile/lib/utils/action_button.utils.dart index 2aad2f264a..3edc50c847 100644 --- a/mobile/lib/utils/action_button.utils.dart +++ b/mobile/lib/utils/action_button.utils.dart @@ -271,8 +271,7 @@ enum ActionButtonType { onPressed: buildContext == null ? null : () async { - await buildContext.maybePop(); - await buildContext.navigateTo(const TabShellRoute(children: [MainTimelineRoute()])); + await buildContext.router.navigate(const TabShellRoute(children: [MainTimelineRoute()])); EventStream.shared.emit(ScrollToDateEvent(context.asset.createdAt)); }, ),