dylanwuzh / flutter-cupertino-date-picker

Flutter cupertino style date picker.
Apache License 2.0
363 stars 416 forks source link

No named parameter with the name 'shadowThemeOnly'. #150

Open him123 opened 3 years ago

him123 commented 3 years ago

../../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.

him123 commented 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) {
        }
sgelves commented 3 years ago

You should've migrate to flutter_cupertino_datetime_picker. That solved the problem to me, I found the solution in another thread #152.