| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Agent Assistant 的移动客户端应用,使用 Flutter 框架开发,提供与 AI Agent 的实时通信功能。
lib/
├── config/ # 应用配置
├── constants/ # 常量定义
├── models/ # 数据模型
├── providers/ # 状态管理
├── proto/ # Protobuf 生成的文件
├── screens/ # 页面组件
├── services/ # 服务层
├── widgets/ # 可复用组件
└── main.dart # 应用入口
cd flutterclient
flutter pub get# 安装 protoc-gen-dart
dart pub global activate protoc_plugin
# 生成 Dart protobuf 文件
./generate_proto.sh# 开发模式运行
flutter run
# 构建 APK
flutter build apk
# 构建 iOS
flutter build ios
# 构建 Linux
flutter build linux --release应用启动时需要配置以下信息:
主要配置项在 lib/config/app_config.dart 中:
class AppConfig {
// WebSocket 配置
static const String defaultWebSocketHost = 'localhost';
static const int defaultWebSocketPort = 8080;
// 连接设置
static const int maxReconnectAttempts = 5;
static const int reconnectDelayMs = 1000;
// UI 设置
static const int maxMessageLength = 10000;
static const int messageHistoryLimit = 1000;
}# 启用调试模式
flutter run --debug
# 查看日志
flutter logs
# 分析代码
flutter analyze# 运行单元测试
flutter test
# 运行集成测试
flutter drive --target=test_driver/app.dart连接失败
Token 无效
消息显示异常
应用使用 logger 包记录日志,可以通过以下方式查看:
# Flutter 控制台日志
flutter logs
# Android 设备日志
adb logcat | grep flutter本项目采用 MIT 许可证。详见 LICENSE 文件。
| Back | FazBrowse Home | New Git URL |