Skip to content

Remove vestigial nullOk parameter from Localizations.localeOf#74657

Merged
gspencergoog merged 1 commit intoflutter:masterfrom
gspencergoog:localizations_nullok
Jan 25, 2021
Merged

Remove vestigial nullOk parameter from Localizations.localeOf#74657
gspencergoog merged 1 commit intoflutter:masterfrom
gspencergoog:localizations_nullok

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

@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
@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