Reversion for roll (#22984)
For G3 Roll: * Revert "MaterialButton must honor its minWidth and height parameters (#22919)" This reverts commita02332335a. * Revert "Update uses of ButtonTheme.bar: pass along the current Theme's colorScheme (#22827)" This reverts commit655bf6a290. * Revert "ButtonTheme.of().colorScheme defers to Theme (#22880)" This reverts commita590940e45. * Revert "Bring TextTheme into alignment with the current Material spec (#22330)" This reverts commit8bfb4b3ee5. * Revert "Added ColorScheme, updated ThemeData, ButtonTheme, material buttons (#22013)" This reverts commiteea3465ae7. * Manual adjustments to fix reversion issues.
This commit is contained in:
@@ -2,10 +2,9 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// This program generates a getTranslation() function that looks up the
|
||||
// translations contained by the arb files. The returned value is an
|
||||
// instance of GlobalMaterialLocalizations that corresponds to a single
|
||||
// locale.
|
||||
// This program generates a Dart "localizations" Map definition that combines
|
||||
// the contents of the arb files. The map can be used to lookup a localized
|
||||
// string: `localizations[localeString][resourceId]`.
|
||||
//
|
||||
// The *.arb files are in packages/flutter_localizations/lib/src/l10n.
|
||||
//
|
||||
@@ -274,8 +273,6 @@ String generateType(Map<String, dynamic> attributes) {
|
||||
switch (attributes['x-flutter-type']) {
|
||||
case 'icuShortTimePattern':
|
||||
return 'TimeOfDayFormat';
|
||||
case 'scriptCategory':
|
||||
return 'ScriptCategory';
|
||||
}
|
||||
}
|
||||
return 'String';
|
||||
@@ -311,12 +308,6 @@ const Map<String, String> _icuTimeOfDayToEnum = <String, String>{
|
||||
'ah:mm': 'TimeOfDayFormat.a_space_h_colon_mm',
|
||||
};
|
||||
|
||||
const Map<String, String> _scriptCategoryToEnum = <String, String>{
|
||||
'English-like': 'ScriptCategory.englishLike',
|
||||
'dense': 'ScriptCategory.dense',
|
||||
'tall': 'ScriptCategory.tall',
|
||||
};
|
||||
|
||||
/// Returns the literal that describes the value returned by getters
|
||||
/// with the given attributes.
|
||||
///
|
||||
@@ -339,15 +330,6 @@ String generateValue(String value, Map<String, dynamic> attributes) {
|
||||
);
|
||||
}
|
||||
return _icuTimeOfDayToEnum[value];
|
||||
case 'scriptCategory':
|
||||
if (!_scriptCategoryToEnum.containsKey(value)) {
|
||||
throw Exception(
|
||||
'"$value" is not one of the scriptCategory values supported '
|
||||
'by the material library. Here is the list of supported '
|
||||
'values:\n ' + _scriptCategoryToEnum.keys.join('\n ')
|
||||
);
|
||||
}
|
||||
return _scriptCategoryToEnum[value];
|
||||
}
|
||||
}
|
||||
return generateString(value);
|
||||
|
||||
Reference in New Issue
Block a user