Skip to content

[image_picker] Remove unnecessary Material imports - #12803

Open
ricardodalarme wants to merge 2 commits into
flutter:mainfrom
ricardodalarme:refactor/image_picker/remove-unnecessary-material-cupertino-imports
Open

ricardodalarme wants to merge 2 commits into
flutter:mainfrom
ricardodalarme:refactor/image_picker/remove-unnecessary-material-cupertino-imports

Conversation

@ricardodalarme

@ricardodalarme ricardodalarme commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Removes unnecessary material imports from image_picker to decouple it from Material/Cupertino since they will eventually be removed from the core SDK. Also migrate the examples to material_ui.

Part of: flutter/flutter#191322

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2

@ricardodalarme
ricardodalarme force-pushed the refactor/image_picker/remove-unnecessary-material-cupertino-imports branch from e56f30e to e449a0a Compare September 9, 2026 11:59
@ricardodalarme
ricardodalarme force-pushed the refactor/image_picker/remove-unnecessary-material-cupertino-imports branch from e449a0a to 97cb0c7 Compare September 30, 2026 01:40
@ricardodalarme
ricardodalarme force-pushed the refactor/image_picker/remove-unnecessary-material-cupertino-imports branch from 97cb0c7 to 0a153e2 Compare September 30, 2026 01:41
@ricardodalarme
ricardodalarme marked this pull request as ready for review September 30, 2026 01:41
@ricardodalarme

Copy link
Copy Markdown
Contributor Author

@gaaclarke @walley892 essentially the same as the other one

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request decouples the image_picker_for_web package from Material and Cupertino imports, replacing them with standard widgets. However, it also replaces standard Flutter Material imports and dependencies with the third-party material_ui package across multiple example applications. The feedback requests reverting these changes to use the standard first-party Material library and removing the material_ui dependency.

@tarrinneal tarrinneal added the CICD Run CI/CD label Oct 2, 2026
@tarrinneal
tarrinneal self-requested a review October 2, 2026 19:20
@ricardodalarme
ricardodalarme force-pushed the refactor/image_picker/remove-unnecessary-material-cupertino-imports branch from 0a153e2 to bb19551 Compare October 21, 2026 23:28
@flutter-dashboard flutter-dashboard Bot removed the CICD Run CI/CD label Oct 21, 2026
@ricardodalarme

Copy link
Copy Markdown
Contributor Author

Hey @tarrinneal can I get your review pls?

@tarrinneal tarrinneal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just a nit here

Comment on lines 1 to +4
## NEXT

* Updates minimum supported SDK version to Flutter 3.41/Dart 3.11.
* Decouples from Material and Cupertino imports.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: Since image_picker_for_web only had an unused material.dart import (no Cupertino imports), consider * Removes unnecessary Material imports. here to match #12798.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should probably be a major release. We have been bumping the major version for packages migrating over because they will no longer be backwards compatible if clients are still using Material and Cupertino from the SDK.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see... That is going to be a harsh transition for users. Makes me think we should do the whole repo at once

@tarrinneal tarrinneal added the CICD Run CI/CD label Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants