- #31 ImageMessageBubble: typ=2 气泡,max 220pt / min 80pt 尺寸规则,进度环叠层 - #32 ImageViewerPage: photo_view 全屏查看,PhotoViewGallery 多图滑动,保存+分享工具栏 - #33 ImagePickerSheet + SendImageUseCase: 相册/相机选图(最多9张),裁剪,dart:ui 解析宽高,FormData CDN 上传,typ=2 发送 - #34 image_cropper 接入:_PreviewTile 点击裁剪,iOS TOCropViewController 对齐 - #35 _MessageBubble BubbleKind 路由:typ switch → 各媒体气泡,输入栏新增附件按钮 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
146 lines
3.0 KiB
YAML
146 lines
3.0 KiB
YAML
name: im_app
|
||
description: "Customer IM Client"
|
||
publish_to: none
|
||
version: 0.1.0
|
||
|
||
environment:
|
||
sdk: ^3.11.0
|
||
|
||
dependencies:
|
||
flutter:
|
||
sdk: flutter
|
||
|
||
# Workspace SDK packages - 使用 git dependency 控制版本
|
||
networks_sdk:
|
||
git:
|
||
url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
|
||
ref: networks_sdk/v0.0.1
|
||
path: packages/networks_sdk
|
||
|
||
storage_sdk:
|
||
git:
|
||
url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
|
||
ref: storage_sdk/v0.0.1
|
||
path: packages/storage_sdk
|
||
|
||
media_sdk:
|
||
git:
|
||
url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
|
||
ref: media_sdk/v0.0.1
|
||
path: packages/media_sdk
|
||
|
||
rtc_sdk:
|
||
git:
|
||
url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
|
||
ref: rtc_sdk/v0.0.1
|
||
path: packages/rtc_sdk
|
||
|
||
notification_sdk:
|
||
git:
|
||
url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
|
||
ref: notification_sdk/v0.0.1
|
||
path: packages/notification_sdk
|
||
|
||
protocol_sdk:
|
||
git:
|
||
url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
|
||
ref: protocol_sdk/v0.0.1
|
||
path: packages/protocol_sdk
|
||
|
||
l10n_sdk:
|
||
git:
|
||
url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
|
||
ref: l10n_sdk/v0.0.1
|
||
path: packages/l10n_sdk
|
||
|
||
cipher_guard_sdk:
|
||
git:
|
||
url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
|
||
ref: cipher_guard_sdk/v0.0.1
|
||
path: packages/cipher_guard_sdk
|
||
|
||
im_log_sdk:
|
||
git:
|
||
url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
|
||
ref: im_log_sdk/v0.0.1
|
||
path: packages/im_log_sdk
|
||
|
||
# 状态管理 - Riverpod
|
||
flutter_riverpod: ^3.0.0
|
||
riverpod_annotation: ^4.0.0
|
||
|
||
# 不可变状态 - Freezed
|
||
freezed_annotation: ^3.0.0
|
||
|
||
# JSON 序列化
|
||
json_annotation: ^4.8.1
|
||
|
||
# 路由导航
|
||
go_router: ^12.0.0
|
||
|
||
# 网络状态监听
|
||
connectivity_plus: ^6.1.0
|
||
|
||
# JWT 解析(token 过期检测、主动刷新)
|
||
dart_jsonwebtoken: ^3.1.0
|
||
|
||
# 数据库(schema 定义在 im_app,连接/CRUD 封装在 storage_sdk)
|
||
drift: ^2.22.0
|
||
|
||
# 设备信息(deviceId / deviceName)
|
||
device_info_plus: ^11.0.0
|
||
|
||
# 文件打开(#30)
|
||
open_filex: ^4.4.1
|
||
|
||
# 音频播放(#31)
|
||
audioplayers: ^6.1.0
|
||
|
||
# 视频播放(#32)
|
||
video_player: ^2.9.2
|
||
chewie: ^1.9.0
|
||
|
||
# 小程序 WebView(#25)
|
||
webview_flutter: ^4.8.0
|
||
|
||
# 图片预览 — 全屏 pinch-to-zoom(#32)
|
||
photo_view: ^0.15.0
|
||
|
||
# 图片选取 — 相册/相机(#33)
|
||
image_picker: ^1.1.2
|
||
|
||
# 图片编辑 — 裁剪/旋转(#34)
|
||
image_cropper: ^5.0.1
|
||
|
||
# 图片保存到相册(#32)
|
||
image_gallery_saver_plus: ^3.0.5
|
||
|
||
# 分享(#32)
|
||
share_plus: ^10.0.0
|
||
|
||
|
||
dev_dependencies:
|
||
flutter_test:
|
||
sdk: flutter
|
||
integration_test:
|
||
sdk: flutter
|
||
|
||
# 代码生成
|
||
drift_dev: ^2.22.0
|
||
build_runner: ^2.4.6
|
||
riverpod_generator: ^4.0.0
|
||
freezed: ^3.0.0
|
||
json_serializable: ^6.7.1
|
||
|
||
# 代码检查
|
||
flutter_lints: ^6.0.0
|
||
very_good_analysis: ^5.1.0
|
||
|
||
# 测试
|
||
mocktail: ^1.0.1
|
||
|
||
flutter:
|
||
uses-material-design: true
|
||
assets:
|
||
- assets/
|