rtc_prd/airhub_app/pubspec.yaml
repair-agent d741fd4f5c feat: 实现故事绘本视频播放及修复TTS状态管理
- 添加 video_player 依赖,实现 OSS 视频播放
- 故事有 has_video 时自动切换到绘本 Tab 并初始化播放器
- 修复播放按钮尺寸及 GestureDetector 事件穿透问题
- TTSService 新增 errorTitle 字段,避免跨故事错误状态污染
- 修复 device entity 相关代码

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-02 15:16:58 +08:00

117 lines
4.0 KiB
YAML

name: airhub_app
description: "A new Flutter project."
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.0+1
environment:
sdk: ^3.10.7
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^6.0.0
build_runner: ^2.4.14
freezed: ^3.0.0
json_serializable: ^6.9.0
riverpod_generator: ^3.0.0
riverpod_lint: ^3.0.0
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
# Core Architecture
flutter_riverpod: ^3.0.0
riverpod_annotation: ^3.0.0
go_router: ^14.0.0
freezed_annotation: ^3.0.0
json_annotation: ^4.9.0
fpdart: ^1.1.0 # Functional programming (Optional/Recommended)
# Network & Storage
dio: ^5.7.0
shared_preferences: ^2.3.0
# Aliyun Phone Auth (一键登录) — 使用本地包
ali_auth:
path: packages/ali_auth
# Existing dependencies
webview_flutter: ^4.4.2
permission_handler: ^11.0.0
google_fonts: ^6.1.0
flutter_blue_plus: ^1.31.0
flutter_svg: ^2.0.9
image_picker: ^1.2.1
just_audio: ^0.9.42
http: ^1.2.0
video_player: ^2.9.2
flutter:
uses-material-design: true
assets:
- assets/www/
- assets/www/icons/
- assets/www/storybook_videos/
- assets/www/story_covers/
- assets/www/music/
- assets/fonts/
fonts:
- family: Inter
fonts:
- asset: assets/fonts/Inter-Regular.ttf
- asset: assets/fonts/Inter-Medium.ttf
weight: 500
- asset: assets/fonts/Inter-SemiBold.ttf
weight: 600
- asset: assets/fonts/Inter-Bold.ttf
weight: 700
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/to/resolution-aware-images
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/to/asset-from-package
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/to/font-from-package