fix(ui): 预览缩略图尺寸/居中修正;紧凑工具栏保留「AI 生成」文字;README 去除测试版措辞
- 预览卡片 CustomPaint 显式 size=Size.infinite,修正缩略图偏移与不显示 - 圆周缩略图自适应铺满、居中;条形缩略图正常铺满 - 紧凑工具栏 AI 按钮改为带「AI 生成」文字,避免认不出 - README:测试版 -> 正式版 V1.0.0 - 重新构建 dist
This commit is contained in:
@@ -417,9 +417,8 @@ class _AppShellState extends State<AppShell> {
|
||||
showDialog<void>(context: context, builder: (_) => ActionEditorDialog(controller: c, action: a));
|
||||
}
|
||||
}, tooltip: '编辑', color: t.accent),
|
||||
_iconBtn(t, Icons.auto_awesome, () =>
|
||||
showDialog<void>(context: context, builder: (_) => AiGenerateDialog(controller: c)),
|
||||
tooltip: 'AI 生成', color: t.accent2),
|
||||
// AI 是核心卖点,紧凑布局下也保留「AI 生成」文字,避免认不出。
|
||||
_aiBtn(t),
|
||||
const SizedBox(width: 8),
|
||||
_segmented(t, compact: true),
|
||||
];
|
||||
@@ -685,13 +684,14 @@ class _AppShellState extends State<AppShell> {
|
||||
builder: (_) => AiGenerateDialog(controller: c),
|
||||
),
|
||||
icon: const Icon(Icons.auto_awesome, size: 16),
|
||||
label: const Text('AI 生成', style: TextStyle(fontSize: 11, fontWeight: FontWeight.w600)),
|
||||
label: const Text('AI 生成', style: TextStyle(fontSize: 12, fontWeight: FontWeight.w700)),
|
||||
style: FilledButton.styleFrom(
|
||||
backgroundColor: t.accent2,
|
||||
foregroundColor: Colors.white,
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(9)),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 10),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 8),
|
||||
minimumSize: const Size(0, 34),
|
||||
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user