Commit c6be1b96 authored by Efthymis Sarmpanis's avatar Efthymis Sarmpanis Committed by Gary Qian

Fix apidocs in _WidgetsAppState.basicLocaleListResolution (#32638)

(all tests passed, github not displaying it)
parent 94ce956f
......@@ -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`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment