Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[camera] Update camera_avfoundation constraint to ^0.11.0

未关闭 适合新手
#194,842 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@bparrishMines 已经在做这个了。

开始于 2026年10月20日。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
dart, flutter
领域
mobile

调研方向

打开 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 内容生成。

描述

c: proposal in triage p: camera P2 package team-ecosystem triaged-ecosystem
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 videoOrientation with videoRotationAngle on 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:

  1. In an app, depend on camera: ^0.12.1 and camera_avfoundation: ^0.11.0+4.
  2. 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

flutter/flutter 的其他 Issue

查看 flutter/flutter 的全部 Issue

相似的 Issue

更多 Dart Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。