1. 布局居中:将 Column 包裹在 Center 中,所有文本添加 textAlign: TextAlign.center,确保头像、标题、副标题 在各种屏幕尺寸上居中显示。 2. 错误展示优化:将 SnackBar 大面积红色块替换为行内错误卡片, 采用圆角容器 + error icon + 简洁文案,视觉上更融洽。 新增 _errorMessage 状态字段 + _friendlyError() 方法, 将 DioException 等异常转换为中文友好提示(如 "语音服务 暂不可用 (503)"),避免用户看到大段英文 stacktrace。 3. 错误状态清理:点击接听时自动清除上一次的 _errorMessage。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| android | ||
| assets | ||
| ios/Runner/Assets.xcassets/AppIcon.appiconset | ||
| lib | ||
| test | ||
| .gitignore | ||
| .metadata | ||
| README.md | ||
| analysis_options.yaml | ||
| pubspec.lock | ||
| pubspec.yaml | ||
README.md
it0_app
A new Flutter project.
Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.