@@ -41,17 +41,23 @@ ConstructorGenerator generateMaterialConstructor = (LocaleInfo locale) {
|
||||
const MaterialLocalization${locale.camelCase()}({
|
||||
String localeName = '$localeName',
|
||||
@required intl.DateFormat fullYearFormat,
|
||||
@required intl.DateFormat compactDateFormat,
|
||||
@required intl.DateFormat shortDateFormat,
|
||||
@required intl.DateFormat mediumDateFormat,
|
||||
@required intl.DateFormat longDateFormat,
|
||||
@required intl.DateFormat yearMonthFormat,
|
||||
@required intl.DateFormat shortMonthDayFormat,
|
||||
@required intl.NumberFormat decimalFormat,
|
||||
@required intl.NumberFormat twoDigitZeroPaddedFormat,
|
||||
}) : super(
|
||||
localeName: localeName,
|
||||
fullYearFormat: fullYearFormat,
|
||||
compactDateFormat: compactDateFormat,
|
||||
shortDateFormat: shortDateFormat,
|
||||
mediumDateFormat: mediumDateFormat,
|
||||
longDateFormat: longDateFormat,
|
||||
yearMonthFormat: yearMonthFormat,
|
||||
shortMonthDayFormat: shortMonthDayFormat,
|
||||
decimalFormat: decimalFormat,
|
||||
twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat,
|
||||
);''';
|
||||
@@ -63,15 +69,18 @@ const String materialFactoryDeclaration = '''
|
||||
GlobalMaterialLocalizations getMaterialTranslation(
|
||||
Locale locale,
|
||||
intl.DateFormat fullYearFormat,
|
||||
intl.DateFormat compactDateFormat,
|
||||
intl.DateFormat shortDateFormat,
|
||||
intl.DateFormat mediumDateFormat,
|
||||
intl.DateFormat longDateFormat,
|
||||
intl.DateFormat yearMonthFormat,
|
||||
intl.DateFormat shortMonthDayFormat,
|
||||
intl.NumberFormat decimalFormat,
|
||||
intl.NumberFormat twoDigitZeroPaddedFormat,
|
||||
) {''';
|
||||
|
||||
const String materialFactoryArguments =
|
||||
'fullYearFormat: fullYearFormat, mediumDateFormat: mediumDateFormat, longDateFormat: longDateFormat, yearMonthFormat: yearMonthFormat, decimalFormat: decimalFormat, twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat';
|
||||
'fullYearFormat: fullYearFormat, compactDateFormat: compactDateFormat, shortDateFormat: shortDateFormat, mediumDateFormat: mediumDateFormat, longDateFormat: longDateFormat, yearMonthFormat: yearMonthFormat, shortMonthDayFormat: shortMonthDayFormat, decimalFormat: decimalFormat, twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat';
|
||||
|
||||
const String materialSupportedLanguagesConstant = 'kMaterialSupportedLanguages';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user