mirror of
https://github.com/flutter/flutter
synced 2024-10-13 03:32:55 +00:00
Fix apidocs in _WidgetsAppState.basicLocaleListResolution (#32638)
(all tests passed, github not displaying it)
This commit is contained in:
parent
94ce956f0a
commit
c6be1b9619
|
@ -874,11 +874,11 @@ class _WidgetsAppState extends State<WidgetsApp> implements WidgetsBindingObserv
|
|||
/// To summarize, the main matching priority is:
|
||||
///
|
||||
/// 1. [Locale.languageCode], [Locale.scriptCode], and [Locale.countryCode]
|
||||
/// 2. [Locale.languageCode] and [Locale.countryCode] only
|
||||
/// 2. [Locale.languageCode] and [Locale.scriptCode] only
|
||||
/// 3. [Locale.languageCode] and [Locale.countryCode] only
|
||||
/// 4. [Locale.languageCode] only (with caveats, see above)
|
||||
/// 6. [Locale.countryCode] only when all [preferredLocales] fail to match
|
||||
/// 5. returns [supportedLocales.first] as a fallback
|
||||
/// 5. [Locale.countryCode] only when all [preferredLocales] fail to match
|
||||
/// 6. returns [supportedLocales.first] as a fallback
|
||||
///
|
||||
/// This algorithm does not take language distance (how similar languages are to each other)
|
||||
/// into account, and will not handle edge cases such as resolving `de` to `fr` rather than `zh`
|
||||
|
|
Loading…
Reference in a new issue