Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[various] prepare for more const widgets #7074

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

goderbauer
Copy link
Member

@goderbauer goderbauer commented Feb 1, 2023

Similar to #7030.

flutter/flutter#119673 will make a few more widgets const. This prepares the plugins repo for that change.

I chose to ignore the resulting lint for now to ensure that the plugins continue to work on older versions of Flutter. Once the change referenced above is part of the oldest Flutter version supported by the plugins, we can resolve the TODO, remove the ignore, and make the widgets in question const.

@@ -1,6 +1,7 @@
## NEXT

* Updates minimum Flutter version to 3.0.
* Ignores a lint in the tests for backwards compatibility.
Copy link
Contributor

Choose a reason for hiding this comment

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

All of the changelog and version changes should be reverted; the repo tooling currently doesn't do line-by-line analysis so don't know that (non-doc) comments are exempt.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@@ -29,8 +29,12 @@ void main() {
) async {
// Inject two map widgets...
await tester.pumpWidget(
// TODO(goderbauer): Make this const when that's available on stable.
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you put a version? That helps with knowing when to clean it up later; we often use language like "Make this const when this package requires Flutter 3.8 or later".

Copy link
Member Author

Choose a reason for hiding this comment

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

Done using your suggested language.

@stuartmorgan-g stuartmorgan-g added override: no versioning needed Override the check requiring version bumps for most changes override: no changelog needed Override the check requiring CHANGELOG updates for most changes labels Feb 1, 2023
@stuartmorgan-g
Copy link
Contributor

Overrides: linter ignores are dev-only, so exempt by repo policy.

@stuartmorgan-g
Copy link
Contributor

stuartmorgan-g commented Feb 1, 2023

If you have a chance, could you do flutter/packages as well? We currently on analyze plugins in the flutter/flutter repo so they won't show up there, but doing it in advance will avoid the roller stopping .

@goderbauer
Copy link
Member Author

If you have a chance, could you do flutter/packages as well? We currently on analyze plugins in the flutter/flutter repo so they won't show up there, but doing it in advance will avoid the roller stopping .

I'm on it.

Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

LGTM!

@goderbauer goderbauer added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 1, 2023
@goderbauer goderbauer merged commit ec46386 into flutter:main Feb 1, 2023
@goderbauer goderbauer deleted the moreconstignores branch February 1, 2023 19:02
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 2, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Feb 2, 2023
* 8f83dc29b [various] Standardize the extension for Pigeon-generated Dart (flutter/plugins#7029)

* 8fcff8756 Roll Flutter from 75680ae to 0a22a1d (3 revisions) (flutter/plugins#7051)

* 3d81a0071 [tool] More main-branch detection improvement (flutter/plugins#7067)

* e41f9f95e [ci] Clean up analysis options (flutter/plugins#7068)

* 4cf6f4494 [in_app_puchase_storekit] handle `appStoreReceiptURL` is nil (flutter/plugins#7069)

* d5bab1668 prepare for TestDefaultBinaryMessengerBinding.instance becoming non-nullable (flutter/plugins#6847)

* 36d8066cf Roll Flutter from 0a22a1d to d278808 (58 revisions) (flutter/plugins#7078)

* ec463866f [various] prepare for more const widgets (flutter/plugins#7074)

* dbf8d8d07 Change google_sign_in_ios and image_picker_ios owners (flutter/plugins#7070)

* 1d4570bb0 Update README.md (flutter/plugins#7076)

* 9302d87ee [ci] More cirrus.yml pre-alignment with flutter/packages (flutter/plugins#7079)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App override: no changelog needed Override the check requiring CHANGELOG updates for most changes override: no versioning needed Override the check requiring version bumps for most changes p: google_maps_flutter p: local_auth p: url_launcher platform-android platform-ios platform-windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants