null safety
This commit is contained in:
@@ -10,19 +10,19 @@ class InputDate extends StatelessWidget {
|
||||
final String labelTextKey;
|
||||
final IconData iconData;
|
||||
final TextEditingController controller;
|
||||
final FormFieldValidator<String> validator;
|
||||
final FormFieldValidator<String>? validator;
|
||||
final int maxLines;
|
||||
final bool withBorder;
|
||||
final Color borderColor;
|
||||
final TextInputType textInputType;
|
||||
final Color? borderColor;
|
||||
final TextInputType? textInputType;
|
||||
final bool autoFocus;
|
||||
final String dateFormatString;
|
||||
|
||||
const InputDate(
|
||||
{Key key,
|
||||
this.labelTextKey,
|
||||
this.iconData,
|
||||
this.controller,
|
||||
{Key? key,
|
||||
required this.labelTextKey,
|
||||
required this.iconData,
|
||||
required this.controller,
|
||||
this.validator,
|
||||
this.maxLines = 1,
|
||||
this.withBorder = false,
|
||||
@@ -72,7 +72,7 @@ class InputDate extends StatelessWidget {
|
||||
),
|
||||
labelText: labelTextKey == null
|
||||
? null
|
||||
: AppTranslations.of(context).text(labelTextKey),
|
||||
: AppTranslations.of(context)!.text(labelTextKey),
|
||||
labelStyle: languageModel.isEng
|
||||
? newLabelStyle(color: Colors.black54, fontSize: 20)
|
||||
: newLabelStyleMM(color: Colors.black54, fontSize: 20),
|
||||
|
||||
Reference in New Issue
Block a user