Fix apidocs in _WidgetsAppState.basicLocaleListResolution (#32638)

(all tests passed, github not displaying it)
This commit is contained in:
Efthymis Sarmpanis 2019-05-21 20:15:57 +03:00 committed by Gary Qian
parent 94ce956f0a
commit c6be1b9619

View file

@ -874,11 +874,11 @@ class _WidgetsAppState extends State<WidgetsApp> implements WidgetsBindingObserv
/// To summarize, the main matching priority is: /// To summarize, the main matching priority is:
/// ///
/// 1. [Locale.languageCode], [Locale.scriptCode], and [Locale.countryCode] /// 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 /// 3. [Locale.languageCode] and [Locale.countryCode] only
/// 4. [Locale.languageCode] only (with caveats, see above) /// 4. [Locale.languageCode] only (with caveats, see above)
/// 6. [Locale.countryCode] only when all [preferredLocales] fail to match /// 5. [Locale.countryCode] only when all [preferredLocales] fail to match
/// 5. returns [supportedLocales.first] as a fallback /// 6. returns [supportedLocales.first] as a fallback
/// ///
/// This algorithm does not take language distance (how similar languages are to each other) /// 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` /// into account, and will not handle edge cases such as resolving `de` to `fr` rather than `zh`