Container(
child: DateTimeField(
controller: _fechaController,
validator: (value) {
if (value == "") {
return 'Requerido*';
}
return null;
},
format: format,
decoration: InputDecoration(labelText: "Fecha"),
onShowPicker: (context, currentValue) {
return showDatePicker(
context: context,
firstDate: DateTime(1900),
initialDate: currentValue ?? DateTime.now(),
lastDate: DateTime(2100));
},
),
),
我只需要分配一周中的当前日期和将来的日期,这取决于显示给我显示月份的单选按钮吗?
我尝试使用 datetime_picker_formfield:^ 1.0.0 提供的方法,但找不到解决方法