[camera] Update camera_avfoundation constraint to ^0.11.0
维护者通常 1 天内回复
@bparrishMines 已经在做这个了。
开始于 2026年10月20日。
评估
调研方向
打开 packages/camera/camera/pubspec.yaml,检查 camera_avfoundation 和 camera_platform_interface 的约束。确认建议的版本能根据 package 的依赖约束解析;从 camera package 运行 flutter pub get。当 package 接受 camera_avfoundation ^0.11.0 和 camera_platform_interface ^2.14.0,使应用无需 dependency overrides 即可解析 iOS 修复时,任务即完成。
由索引模型根据 Issue 内容生成。
描述
Use case
camera_avfoundation 0.11.0 was published on 2026-09-24 (flutter/packages#11774, custom video output path), and the fixes since then only ship on 0.11.x:
- 0.11.0+2: replaces the deprecated
videoOrientationwithvideoRotationAngleon iOS 17+ - 0.11.0+3: fixes a crash when switching camera while recording video
- 0.11.0+4: fixes a Swift 6 sendability mismatch in
CaptureDevice
The app-facing camera package (0.12.1, and main at the time of writing) still declares camera_avfoundation: ^0.10.2, so apps that depend on camera can't pick up these fixes. Adding camera_avfoundation: ^0.11.0+4 to an app fails to resolve:
Because camera 0.12.1 depends on camera_avfoundation ^0.10.2 and no versions of camera match >0.12.1 <0.13.0, camera ^0.12.1 requires camera_avfoundation ^0.10.2.
So, because my_app depends on both camera ^0.12.1 and camera_avfoundation ^0.11.0+4, version solving failed.
Right now the only way to get them is dependency_overrides.
Android isn't affected: the same feature shipped as camera_android_camerax 0.7.5, which camera's ^0.7.4 constraint already allows.
Steps to reproduce:
- In an app, depend on
camera: ^0.12.1andcamera_avfoundation: ^0.11.0+4. - Run
flutter pub get.
Proposal
Bump the camera_avfoundation constraint in packages/camera/camera/pubspec.yaml to ^0.11.0 (with camera_platform_interface: ^2.14.0), so camera users get the iOS fixes without overrides.
Flutter 3.47.7 (stable), Dart 3.13.5, macOS.
- 主要语言
- Dart
- 星标
- 180k
- 派生
- 33.9k
- 平均合并
- 2 天 7 小时
- 30 天内合并 PR
- 323
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
flutter/flutter 的其他 Issue
-
[a11y_assessments] Disabled CheckboxListTile shares mutable state可能已有人在做 @kevmoo 于 12 天前认领。 未关闭a: accessibility fyi-design p: material_ui package team-accessibility
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复
-
team-ios
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
platform-windows team-web tool
难度 2/5 1-3 小时 新手友好度 74/100
flutter/flutter#194825 · 1 条评论 ·
维护者通常 1 天内回复
-
a: accessibility fyi-web has reproducible steps platform-web team-accessibility
难度 2/5 1-3 小时 新手友好度 78/100
flutter/flutter#194688 · 1 条评论 ·
维护者通常 1 天内回复
-
[material_ui] CalendarDatePicker day numbers are cut off with large text scale on narrow screens未关闭has reproducible steps p: material_ui package platform-android platform-ios team-design
难度 2/5 1-3 小时 新手友好度 78/100
flutter/flutter#194657 · 2 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
Standalone dash flashes as its own RSVP step (e.g. Russian dialogue)可能已有人在做 @bezig01 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
daniel-pimenta-cc/ledor#53 ·
-
enhancement firebase
难度 2/5 1-3 小时 新手友好度 65/100
brysonddelozier/scribbles#24 ·
-
bug good first issue P2-Medium
难度 2/5 1-3 小时 新手友好度 64/100
basictech01/uniun#305 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
daohoangson/flutter_widget_from_html#1657 ·
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
RevenueCat/purchases-flutter#1973 ·
维护者通常 1 天内回复