Skip to content

fix: block file_picker 12.0.0-beta prerelease (#1)#98

Merged
anilcancakir merged 1 commit into
masterfrom
fix/file-picker-prerelease-constraint
Jun 25, 2026
Merged

fix: block file_picker 12.0.0-beta prerelease (#1)#98
anilcancakir merged 1 commit into
masterfrom
fix/file-picker-prerelease-constraint

Conversation

@anilcancakir

Copy link
Copy Markdown
Contributor

What

Tighten the file_picker constraint from >=11.0.2 <13.0.0 to >=11.0.2 <12.0.0.

Why

The wider bound let 12.0.0-beta resolve, whose non-null saveFile parameters break the nullable signature in lib/src/facades/pick.dart, failing the build for consumers.

Verification

flutter pub get resolves file_picker to 11.0.2; dart analyze clean. pick.dart untouched.

Fixes REPORT.md bug #1.

Copilot AI review requested due to automatic review settings June 24, 2026 21:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tightens the file_picker dependency constraint to avoid consumers resolving a prerelease (12.0.0-beta) that breaks Pick.saveFile()’s nullable signature, and documents the change in the changelog.

Changes:

  • Update pubspec.yaml to narrow the allowed file_picker versions.
  • Add a [Unreleased] changelog entry explaining the constraint change and rationale.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
pubspec.yaml Narrows the file_picker version range to prevent resolving incompatible versions.
CHANGELOG.md Documents the file_picker constraint change and its motivation.

Comment thread pubspec.yaml Outdated
Comment thread CHANGELOG.md Outdated
@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Tighten the file_picker constraint from ">=11.0.2 <13.0.0" to
">=11.0.2 <12.0.0". The wider bound let 12.0.0-beta resolve, whose
non-null saveFile parameters break the nullable signature in
lib/src/facades/pick.dart.
@anilcancakir anilcancakir force-pushed the fix/file-picker-prerelease-constraint branch from 5f9871f to a9ca032 Compare June 25, 2026 10:56
@anilcancakir anilcancakir merged commit 1dfa207 into master Jun 25, 2026
3 checks passed
@anilcancakir anilcancakir deleted the fix/file-picker-prerelease-constraint branch June 25, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants