Fix doc typo in WidgetsApp.supportedLocales (#51646)

* Fix doc typo
This commit is contained in:
Shi-Hao Hong 2020-03-02 09:49:21 -08:00 committed by GitHub
parent ec64f93fdd
commit 96003f91d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -615,11 +615,11 @@ class WidgetsApp extends StatefulWidget {
/// `basicLocaleListResolution`, attempts to match by the following priority: /// `basicLocaleListResolution`, attempts to match by the following priority:
/// ///
/// 1. [Locale.languageCode], [Locale.scriptCode], and [Locale.countryCode] /// 1. [Locale.languageCode], [Locale.scriptCode], and [Locale.countryCode]
/// 1. [Locale.languageCode] and [Locale.countryCode] only /// 2. [Locale.languageCode] and [Locale.scriptCode] only
/// 1. [Locale.languageCode] and [Locale.countryCode] only /// 3. [Locale.languageCode] and [Locale.countryCode] only
/// 1. [Locale.languageCode] only /// 4. [Locale.languageCode] only
/// 1. [Locale.countryCode] only when all preferred locales fail to match /// 5. [Locale.countryCode] only when all preferred locales fail to match
/// 1. Returns the first element of [supportedLocales] as a fallback /// 6. Returns the first element of [supportedLocales] as a fallback
/// ///
/// When more than one supported locale matches one of these criteria, only /// When more than one supported locale matches one of these criteria, only
/// the first matching locale is returned. /// the first matching locale is returned.