forked from firka/flutter
Bring TextTheme into alignment with the current Material spec (#22330)
This commit is contained in:
@@ -138,11 +138,11 @@ It is converted to an enum value because the `material_en.arb` file
|
||||
has this value labeled as `"x-flutter-type": "icuShortTimePattern"`.
|
||||
|
||||
The value of `scriptCategory` is based on the
|
||||
[Language categories reference](https://material.io/go/design-typography#typography-language-categories-reference)
|
||||
[Language categories reference](https://material.io/design/typography/language-support.html#language-categories-reference)
|
||||
section in the Material spec. The `scriptCategory` value is used when looking up
|
||||
the `TextTheme`, see the
|
||||
[MaterialTextGeometry](https://docs.flutter.io/flutter/material/MaterialTextGeometry/forScriptCategory.html)
|
||||
class.
|
||||
[MaterialTextGeometry](https://docs.flutter.io/flutter/material/MaterialTextGeometry/localizedFor.html)
|
||||
method.
|
||||
|
||||
|
||||
### Generated file localizations.dart: all of the localizations as a Map
|
||||
|
||||
@@ -171,7 +171,7 @@ class MaterialLocalizationAr extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'عدد الصفوف في الصفحة:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'tall';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.tall;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'بحث';
|
||||
@@ -372,7 +372,7 @@ class MaterialLocalizationBg extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Редове на страница:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Търсене';
|
||||
@@ -573,7 +573,7 @@ class MaterialLocalizationBs extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Redaka po stranici:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Pretražite';
|
||||
@@ -774,7 +774,7 @@ class MaterialLocalizationCa extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Files per pàgina:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Cerca';
|
||||
@@ -975,7 +975,7 @@ class MaterialLocalizationCs extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Počet řádků na stránku:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Hledat';
|
||||
@@ -1176,7 +1176,7 @@ class MaterialLocalizationDa extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Rækker pr. side:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Søg';
|
||||
@@ -1377,7 +1377,7 @@ class MaterialLocalizationDe extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Zeilen pro Seite:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Suchen';
|
||||
@@ -1608,7 +1608,7 @@ class MaterialLocalizationEl extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Σειρές ανά σελίδα:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Αναζήτηση';
|
||||
@@ -1809,7 +1809,7 @@ class MaterialLocalizationEn extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Rows per page:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Search';
|
||||
@@ -2313,7 +2313,7 @@ class MaterialLocalizationEs extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Filas por página:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Buscar';
|
||||
@@ -4137,7 +4137,7 @@ class MaterialLocalizationEt extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Ridu lehe kohta:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Otsing';
|
||||
@@ -4338,7 +4338,7 @@ class MaterialLocalizationFa extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'ردیف در هر صفحه:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'tall';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.tall;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'جستجو';
|
||||
@@ -4539,7 +4539,7 @@ class MaterialLocalizationFi extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Riviä/sivu:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Haku';
|
||||
@@ -4740,7 +4740,7 @@ class MaterialLocalizationFil extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Mga row bawat page:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Maghanap';
|
||||
@@ -4941,7 +4941,7 @@ class MaterialLocalizationFr extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Lignes par page :';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Rechercher';
|
||||
@@ -5169,7 +5169,7 @@ class MaterialLocalizationGsw extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Zeilen pro Seite:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Suchen';
|
||||
@@ -5370,7 +5370,7 @@ class MaterialLocalizationHe extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'שורות בכל דף:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'חיפוש';
|
||||
@@ -5571,7 +5571,7 @@ class MaterialLocalizationHi extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'हर पेज में पंक्तियों की संख्या:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'dense';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.dense;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'खोजें';
|
||||
@@ -5772,7 +5772,7 @@ class MaterialLocalizationHr extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Redaka po stranici:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Pretražite';
|
||||
@@ -5973,7 +5973,7 @@ class MaterialLocalizationHu extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Oldalankénti sorszám:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Keresés';
|
||||
@@ -6174,7 +6174,7 @@ class MaterialLocalizationId extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Baris per halaman:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Telusuri';
|
||||
@@ -6375,7 +6375,7 @@ class MaterialLocalizationIt extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Righe per pagina:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Cerca';
|
||||
@@ -6576,7 +6576,7 @@ class MaterialLocalizationJa extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'ページあたりの行数:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'dense';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.dense;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'検索';
|
||||
@@ -6777,7 +6777,7 @@ class MaterialLocalizationKm extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'ជួរមុខ:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'dense';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.dense;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'ស្វែងរក';
|
||||
@@ -6978,7 +6978,7 @@ class MaterialLocalizationKo extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'페이지당 행 수:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'dense';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.dense;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'검색';
|
||||
@@ -7179,7 +7179,7 @@ class MaterialLocalizationLt extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Eilučių puslapyje:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Paieška';
|
||||
@@ -7380,7 +7380,7 @@ class MaterialLocalizationLv extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Rindas lapā:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Meklēt';
|
||||
@@ -7581,7 +7581,7 @@ class MaterialLocalizationMs extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Baris setiap halaman:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Cari';
|
||||
@@ -7782,7 +7782,7 @@ class MaterialLocalizationNb extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Rader per side:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Søk';
|
||||
@@ -7983,7 +7983,7 @@ class MaterialLocalizationNl extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Rijen per pagina:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Zoeken';
|
||||
@@ -8184,7 +8184,7 @@ class MaterialLocalizationPl extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Wiersze na stronie:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Szukaj';
|
||||
@@ -8385,7 +8385,7 @@ class MaterialLocalizationPs extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'د هرې پاڼې پاڼې:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'tall';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.tall;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'لټون';
|
||||
@@ -8586,7 +8586,7 @@ class MaterialLocalizationPt extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Linhas por página:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Pesquisa';
|
||||
@@ -8871,7 +8871,7 @@ class MaterialLocalizationRo extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Rânduri pe pagină:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Căutați';
|
||||
@@ -9072,7 +9072,7 @@ class MaterialLocalizationRu extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Строк на странице:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Поиск';
|
||||
@@ -9273,7 +9273,7 @@ class MaterialLocalizationSk extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Počet riadkov na stránku:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Hľadať';
|
||||
@@ -9474,7 +9474,7 @@ class MaterialLocalizationSl extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Vrstice na stran:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Iskanje';
|
||||
@@ -9675,7 +9675,7 @@ class MaterialLocalizationSr extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Редова по страници:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Претражите';
|
||||
@@ -10053,7 +10053,7 @@ class MaterialLocalizationSv extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Rader per sida:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Sök';
|
||||
@@ -10254,7 +10254,7 @@ class MaterialLocalizationTh extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'แถวต่อหน้า:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'tall';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.tall;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'ค้นหา';
|
||||
@@ -10455,7 +10455,7 @@ class MaterialLocalizationTl extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Mga row bawat page:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Maghanap';
|
||||
@@ -10656,7 +10656,7 @@ class MaterialLocalizationTr extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Sayfa başına satır sayısı:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Ara';
|
||||
@@ -10857,7 +10857,7 @@ class MaterialLocalizationUk extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Рядків на сторінці:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Пошук';
|
||||
@@ -11058,7 +11058,7 @@ class MaterialLocalizationUr extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'قطاریں فی صفحہ:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'tall';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.tall;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'تلاش';
|
||||
@@ -11259,7 +11259,7 @@ class MaterialLocalizationVi extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'Số hàng mỗi trang:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'English-like';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.englishLike;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'Tìm kiếm';
|
||||
@@ -11460,7 +11460,7 @@ class MaterialLocalizationZh extends GlobalMaterialLocalizations {
|
||||
String get rowsPerPageTitle => r'每页行数:';
|
||||
|
||||
@override
|
||||
String get scriptCategory => r'dense';
|
||||
ScriptCategory get scriptCategory => ScriptCategory.dense;
|
||||
|
||||
@override
|
||||
String get searchFieldLabel => r'搜索';
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"scriptCategory": "English-like",
|
||||
"@scriptCategory": {
|
||||
"description": "The name of the language's script category (see https://material.io/go/design-typography#typography-language-categories-reference)."
|
||||
"description": "The name of the language's script category (see https://material.io/design/typography/language-support.html#language-categories-reference).",
|
||||
"x-flutter-type": "scriptCategory"
|
||||
},
|
||||
|
||||
"timeOfDayFormat": "h:mm a",
|
||||
|
||||
@@ -502,18 +502,8 @@ abstract class GlobalMaterialLocalizations implements MaterialLocalizations {
|
||||
).replaceFirst(r'$remainingCount', formatDecimal(remainingCount));
|
||||
}
|
||||
|
||||
/// The script category used by [localTextGeometry]. Must be one of the strings
|
||||
/// declared in [MaterialTextGeometry].
|
||||
//
|
||||
// TODO(ianh): make this return a TextTheme from MaterialTextGeometry.
|
||||
// TODO(ianh): drop the constructor on MaterialTextGeometry.
|
||||
// TODO(ianh): drop the strings on MaterialTextGeometry.
|
||||
@protected
|
||||
String get scriptCategory;
|
||||
|
||||
/// Looks up text geometry defined in [MaterialTextGeometry].
|
||||
@override
|
||||
TextTheme get localTextGeometry => MaterialTextGeometry.forScriptCategory(scriptCategory);
|
||||
ScriptCategory get scriptCategory;
|
||||
|
||||
/// A [LocalizationsDelegate] that uses [GlobalMaterialLocalizations.load]
|
||||
/// to create an instance of this class.
|
||||
|
||||
Reference in New Issue
Block a user