From 19d637d7c64d32193e23bb3df78a080608e33cf8 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Tue, 26 May 2026 08:13:34 +0800 Subject: [PATCH] feat(mobile): add navigation breadcrumb to return to chat from settings --- lib/features/mobile/mobile_settings_page.dart | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/lib/features/mobile/mobile_settings_page.dart b/lib/features/mobile/mobile_settings_page.dart index 6b15d53a..f898ba60 100644 --- a/lib/features/mobile/mobile_settings_page.dart +++ b/lib/features/mobile/mobile_settings_page.dart @@ -244,9 +244,27 @@ class _MobileSettingsPageState extends State { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ + GestureDetector( + onTap: () => controller.navigateTo(WorkspaceDestination.assistant), + behavior: HitTestBehavior.opaque, + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + Icon(Icons.arrow_back_ios_new_rounded, size: 16, color: palette.textSecondary), + const SizedBox(width: 6), + Text( + appText('返回对话主页', 'Back to Chat'), + style: TextStyle(color: palette.textSecondary, fontSize: 16), + ), + ], + ), + ), + const SizedBox(height: 24), Text( appText('设置', 'Settings'), - style: Theme.of(context).textTheme.headlineSmall, + style: Theme.of(context).textTheme.headlineSmall?.copyWith( + fontWeight: FontWeight.bold, + ), ), const SizedBox(height: 12), if (availableTabs.length > 1) ...[