feat: 5.4.0版本大更新,新增多端桌面小组件与多项功能优化
- 重构「灵感」模块为「发现」模块,统一页面命名与文案 - 新增flutter_tts语音朗读依赖与鸿蒙Nearby配对方式 - 添加Android/iOS/鸿蒙全平台桌面小组件支持(7种类型) - 完善文件传输模块,新增画布邀请消息与删除会话功能 - 优化协作画布光标广播节流逻辑,修复已知bug - 更新应用英文名与隐私政策入口,新增翻译API抽象层 - 移除用户中心多余的加号按钮,完善空状态组件类型
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
/// ============================================================
|
||||
/// 闲言APP — 登录页面
|
||||
/// 创建时间: 2026-04-28
|
||||
/// 更新时间: 2026-05-13
|
||||
/// 更新时间: 2026-05-19
|
||||
/// 作用: 用户登录界面,支持密码/验证码/Token/老用户/二维码登录
|
||||
/// 上次更新: v10.2.0 增加退出登录后账号预填支持
|
||||
/// 上次更新: 协议弹窗改为跳转实际协议页面
|
||||
/// ============================================================
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
@@ -667,19 +667,13 @@ class _LoginPageState extends ConsumerState<LoginPage>
|
||||
}
|
||||
|
||||
void _showAgreement(String title) {
|
||||
showCupertinoDialog<void>(
|
||||
context: context,
|
||||
builder: (ctx) => CupertinoAlertDialog(
|
||||
title: Text(title),
|
||||
content: Text('$title内容加载中...'),
|
||||
actions: [
|
||||
CupertinoDialogAction(
|
||||
child: const Text('好的'),
|
||||
onPressed: () => Navigator.pop(ctx),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
if (title == '用户协议') {
|
||||
context.appPush('/agreement/user-service-agreement');
|
||||
} else if (title == '隐私政策') {
|
||||
context.appPush('/agreement/privacy-policy');
|
||||
} else {
|
||||
context.appPush('/agreements');
|
||||
}
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
|
||||
Reference in New Issue
Block a user