refactor: 清理无用参数和优化代码结构
- 移除多个文件中的无用参数如sortOrder、keyword、limit等 - 优化日期处理逻辑,使用DateTime(year)替代DateTime(year,1,1) - 修复颜色和边框样式的一致性 - 更新API调用参数,移除冗余的limit和page参数 - 新增SessionPopupMenu组件和ChatSession模型 - 优化笔记模型的时间显示和类型转换 - 修复验证码发送逻辑和加载状态 - 更新文档和脚本文件
This commit is contained in:
@@ -425,7 +425,6 @@ class _ShareSheetContentState extends State<_ShareSheetContent> {
|
||||
children: [
|
||||
QrImageView(
|
||||
data: data.shareUrl,
|
||||
version: QrVersions.auto,
|
||||
size: 180,
|
||||
eyeStyle: QrEyeStyle(
|
||||
eyeShape: QrEyeShape.square,
|
||||
@@ -804,6 +803,7 @@ class _ShareSheetContentState extends State<_ShareSheetContent> {
|
||||
name: 'xianyan_share_qr.png',
|
||||
mimeType: 'image/png',
|
||||
);
|
||||
if (!mounted) return;
|
||||
final box = context.findRenderObject() as RenderBox?;
|
||||
await Share.shareXFiles(
|
||||
[file],
|
||||
@@ -841,6 +841,7 @@ class _ShareSheetContentState extends State<_ShareSheetContent> {
|
||||
name: 'xianyan_card_${data.id ?? 'share'}.png',
|
||||
mimeType: 'image/png',
|
||||
);
|
||||
if (!mounted) return;
|
||||
final box = context.findRenderObject() as RenderBox?;
|
||||
await Share.shareXFiles(
|
||||
[file],
|
||||
|
||||
Reference in New Issue
Block a user