Open him123 opened 3 years ago
Making date picker for only days like below, it show only 30 days in the picker, when we show days it should show 31 days in the picker.
DatePicker.showDatePicker(context, dateFormat: 'dd',
onChange: (date, u) {
}
You should've migrate to flutter_cupertino_datetime_picker
. That solved the problem to me, I found the solution in another thread #152.
../../flutter/.pub-cache/git/flutter-cupertino-date-picker-3a6b1513d77636976794b6c64630b7ae219fb371/lib/src/date_picker.dart:103:34: Error: No named parameter with the name 'shadowThemeOnly'. theme: Theme.of(context, shadowThemeOnly: true), ^^^^^^^^^^^^^^^ ../../flutter/packages/flutter/lib/src/material/theme.dart:107:20: Context: Found this candidate, but the arguments don't match.
static ThemeData of(BuildContext context) { ^^
FAILURE: Build failed with an exception.