Skip to content

Remove vestigial nullOk parameter from Localizations.localeOf #74657

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 25, 2021

Conversation

gspencergoog
Copy link
Contributor

Description

This removes the nullOk parameter on the Localizations.localeOf method. This was already changed to have a maybeLocaleOf method, but the nullOk parameter wasn't removed because some third party tests failed. Those have been updated, so this can go in now.

Related Issues

Tests

  • Updated the widgets_test

Breaking Change

Sorry, something went wrong.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@flutter-dashboard flutter-dashboard bot added a: internationalization Supporting other languages or locales. (aka i18n) framework flutter/packages/flutter repository. See also f: labels. labels Jan 25, 2021
@google-cla google-cla bot added the cla: yes label Jan 25, 2021
Copy link
Member

@goderbauer goderbauer 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
Copy link
Member

Looks like flutter_svg's hash needs to be updated in the tests repository to pick up the removal of nullOK in that package: https://github.com/flutter/tests/blob/master/registry/flutter_svg.test#L3

gspencergoog added a commit to flutter/tests that referenced this pull request Jan 25, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
So that I can land flutter/flutter#74657
@gspencergoog gspencergoog merged commit 8f10a26 into flutter:master Jan 25, 2021
@gspencergoog gspencergoog deleted the localizations_nullok branch January 25, 2021 23:04
@gspencergoog gspencergoog changed the title Remove vestigal nullOk parameter from Localizations.localeOf Remove vestigial nullOk parameter from Localizations.localeOf Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: internationalization Supporting other languages or locales. (aka i18n) framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some widgets' nullOk parameters are inconsistently applied.
2 participants