From c6be1b9619f61a352e8f378623d0f88b26069955 Mon Sep 17 00:00:00 2001 From: Efthymis Sarmpanis Date: Tue, 21 May 2019 20:15:57 +0300 Subject: [PATCH] Fix apidocs in _WidgetsAppState.basicLocaleListResolution (#32638) (all tests passed, github not displaying it) --- packages/flutter/lib/src/widgets/app.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/flutter/lib/src/widgets/app.dart b/packages/flutter/lib/src/widgets/app.dart index e984639e77..a3b27cbfa7 100644 --- a/packages/flutter/lib/src/widgets/app.dart +++ b/packages/flutter/lib/src/widgets/app.dart @@ -874,11 +874,11 @@ class _WidgetsAppState extends State 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`