Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
him123 opened this issue Apr 9, 2021 · 2 comments
Open

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

him123 opened this issue Apr 9, 2021 · 2 comments

Comments

@him123
Copy link

him123 commented Apr 9, 2021

../../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
Copy link
Author

him123 commented Apr 9, 2021

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
Copy link

sgelves commented Jul 20, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants