Closed drown0315 closed 3 weeks ago
Latest commit: 5752b499b8beef1e419ade681785908272fe4a4f
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Hello!
There are a few conflicts :) I personally migrated to WidgetsStateProperty instead
Just noticed that you have already completed the migration.
I have resolved these conflicts.
I found that WidgetStateProperty has not been released in the latest stable version of Flutter yet, which may cause errors for many developers running examples, so I think temporarily using MaterialStatePropertyAll might be a better option.
I've already migrated the english variant to use WidgetsStateProperty.
I prefer being on the edge in terms of feature, because otherwise we'll have to updates the docs again later.
Okay, I have updated.
I replace all occurrences of MaterialStateProperty.all
with WidgetStatePropertyAll
You might want to use ElevatedButton.styleFrom
instead of ButtonStyle
, to avoid bothering with these XxxPropertyAll.
LGTM
Migrated all usages of
MaterialStateProperty.all
, This is because MaterialStateProperty.all will be deprecated in the future. just only changeexample
andwebsites
, so does not updateCHANGELOG.md
refer to: https://github.com/dart-lang/sdk/issues/49056.e.g. Replace
MaterialStateProperty.all
toMaterialStatePropertyAll
Before:After:
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
).[ ] I have updated the
CHANGELOG.md
of the relevant packages. Changelog files must be edited under the form:[x] If this contains new features or behavior changes, I have updated the documentation to match those changes.