Closed Luvain9 closed 5 months ago
Hello, I am getting the following error : The method 'DateFormat' isn't defined for the type '_TimerSheetWidgetState'. Try correcting the name to the name of an existing method, or defining a method named 'DateFormat'.
Would you happen to know why ?
ScrollDateTimePicker( itemExtent: 54, infiniteScroll: true, dateOption: DateTimePickerOption( dateFormat: DateFormat('yyyyMMMdd'), minDate: DateTime(2000, 6), maxDate: DateTime(2024, 6), initialDate: time, ), onChange: (datetime) => setState(() { time = datetime; }), ),
Issue is fixed by installing intl package
Hello, I am getting the following error : The method 'DateFormat' isn't defined for the type '_TimerSheetWidgetState'. Try correcting the name to the name of an existing method, or defining a method named 'DateFormat'.
Would you happen to know why ?
ScrollDateTimePicker( itemExtent: 54, infiniteScroll: true, dateOption: DateTimePickerOption( dateFormat: DateFormat('yyyyMMMdd'), minDate: DateTime(2000, 6), maxDate: DateTime(2024, 6), initialDate: time, ), onChange: (datetime) => setState(() { time = datetime; }), ),