feat!: migrate pin_code_fields 10.0.0 to Flutter 3.47 material_ui - #429
Open
bazookon wants to merge 1 commit into
Open
feat!: migrate pin_code_fields 10.0.0 to Flutter 3.47 material_ui#429bazookon wants to merge 1 commit into
bazookon wants to merge 1 commit into
Conversation
BREAKING CHANGE: v10.0.0 depends on the standalone material_ui and cupertino_ui packages. Apps must migrate off package:flutter/material.dart or wrap mixed trees with MaterialUiCompatibilityBridge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrate
pin_code_fieldsto Flutter 3.47's standalone design-system packages and release it as 10.0.0.Flutter 3.47 publishes
material_uiandcupertino_uias 1.0 packages on pub.dev, decoupling Material and Cupertino from the core SDK. The Flutter team asks ecosystem packages that switch to these libraries to treat it as a major release. See What's new in Flutter 3.47.The PIN field API (
MaterialPinField,PinInput,PinInputController,MaterialPinTheme, etc.) is unchanged. This is an import / dependency migration.Breaking changes
package:flutter/material.dart/package:flutter/cupertino.darttopackage:material_ui/material_ui.dart/package:cupertino_ui/cupertino_ui.dart.material_ui: ^1.0.0,cupertino_ui: ^1.0.0.^3.12.0, Flutter>=3.44.0(tested on Flutter 3.47.1 / Dart 3.13.1).MaterialUiCompatibilityBridge. MixingThemeDatafrom the SDK withThemeDatafrommaterial_uican cause type mismatches.Consumer migration
If other packages still import
package:flutter/material.dart:Full guide:
packages/pin_code_fields/migration/10.0.0/MIGRATION_GUIDE.md.What changed in this PR
material_ui/cupertino_ui.^1.0.0) instead ofany.material_ui..fvmrc(FVM cache remains gitignored).pin_code_fields_liquid_glassandshowcaseare not migrated here and can stay on 9.x / SDK Material until a follow-up.Test plan
flutter testinpackages/pin_code_fields(all tests passed)flutter analyzeinpackages/pin_code_fields(no issues)flutter analyzeinpackages/pin_code_fields/example(no issues)