AI 接入 V1.0

UI更新
This commit is contained in:
2026-09-24 14:24:34 +08:00
parent 34bc2e04b0
commit 9a144f159f
65 changed files with 1195 additions and 196 deletions
+10 -5
View File
@@ -1,5 +1,7 @@
import 'package:flutter/material.dart';
import 'cute_icon.dart';
/// 加载态
class LoadingView extends StatelessWidget {
const LoadingView({super.key, this.tip = '加载中...', this.padding = const EdgeInsets.all(40)});
@@ -43,8 +45,8 @@ class ErrorView extends StatelessWidget {
),
child: Column(
children: [
const Text('😵', style: TextStyle(fontSize: 30)),
const SizedBox(height: 8),
const CuteIcon('error', size: 32),
const SizedBox(height: 10),
Text(
message,
textAlign: TextAlign.center,
@@ -69,10 +71,13 @@ class ErrorView extends StatelessWidget {
}
/// 空状态
///
/// [icon] 传图标名(见 [cuteIconNames]);为了兼容以前传 emoji 的调用点,
/// 走的是 [resolveIconName],emoji 和未知值都能落到一个兜底图标上。
class EmptyView extends StatelessWidget {
const EmptyView({
super.key,
this.icon = '📭',
this.icon = 'inbox',
required this.title,
this.tip,
this.padding = const EdgeInsets.symmetric(vertical: 40),
@@ -89,8 +94,8 @@ class EmptyView extends StatelessWidget {
padding: padding,
child: Column(
children: [
Text(icon, style: const TextStyle(fontSize: 44)),
const SizedBox(height: 10),
CuteIcon(icon, size: 46),
const SizedBox(height: 12),
Text(title, style: const TextStyle(fontSize: 15, color: Color(0xFF5D4037))),
if (tip != null) ...[
const SizedBox(height: 6),