This commit is contained in:
konrad 2019-03-17 13:04:10 +01:00
parent 29a9545cd4
commit ab67a5fb4c
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 2 deletions

View File

@ -23,8 +23,11 @@ class VikunjaDateTimePicker extends StatelessWidget {
padding: padding,
child: DateTimePickerFormField(
dateOnly: false,
editable: false, // Otherwise editing the date is not possible, this setting affects the underlying text field.
initialValue: initialValue == DateTime.fromMillisecondsSinceEpoch(0) ? null : initialValue,
editable:
false, // Otherwise editing the date is not possible, this setting affects the underlying text field.
initialValue: initialValue == DateTime.fromMillisecondsSinceEpoch(0)
? null
: initialValue,
format: vDateFormatLong,
decoration: InputDecoration(
labelText: label,