Open net23 opened 5 years ago
showPickerDate(BuildContext context) { Picker( hideHeader: true, adapter: DateTimePickerAdapter(value: _date), title: Text("Select Data"), onConfirm: (Picker picker, List value) { _date = (picker.adapter as DateTimePickerAdapter).value; textController.text = DateFormat.yMd().format(_date); }).showDialog(context); }
you can change the value in DateTimePickerAdapter
Can I set the default time for the DateTime Picker? I have tried selecteds, but the picker always uses the current time: