feat: align iOS client safety and consent experience
This commit is contained in:
@@ -1276,7 +1276,6 @@ class ChatMessagesView extends ConsumerWidget {
|
||||
/// 处理 AI 回复里的 markdown 链接点击:
|
||||
/// - app://diet → 触发拍照/相册选择,跳到饮食拍照流程
|
||||
/// - app://report → 跳到报告列表(用户可在那里上传新报告)
|
||||
/// - app://device → 跳到蓝牙设备页
|
||||
/// - 其他 app://xxx → 当作 route name 直接跳
|
||||
static void _handleMarkdownLink(
|
||||
BuildContext context,
|
||||
@@ -1296,8 +1295,7 @@ class ChatMessagesView extends ConsumerWidget {
|
||||
pushRoute(ref, 'reports');
|
||||
break;
|
||||
case 'device':
|
||||
pushRoute(ref, 'devices');
|
||||
break;
|
||||
return;
|
||||
default:
|
||||
if (uri.host.isNotEmpty) pushRoute(ref, uri.host);
|
||||
}
|
||||
@@ -2199,12 +2197,6 @@ final _agentActions = <ActiveAgent, List<_AgentAction>>{
|
||||
isWide: true,
|
||||
route: 'trend',
|
||||
),
|
||||
_AgentAction(
|
||||
label: '蓝牙录入',
|
||||
icon: Icons.bluetooth,
|
||||
isWide: true,
|
||||
route: 'devices',
|
||||
),
|
||||
],
|
||||
ActiveAgent.diet: [
|
||||
_AgentAction(
|
||||
|
||||
Reference in New Issue
Block a user