-
Notifications
You must be signed in to change notification settings - Fork 728
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
null safety #279
Comments
yes, Same warning I am getting with version 1.5.1 ../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_datetime_picker-1.5.1/lib/flutter_datetime_picker.dart:311:32: Warning: Operand of null-aware operation '??' has type 'Color' which excludes null.
|
How do you solve this issue? |
Same warning . |
Same warning here, still not fixed |
alternative https://pub.dev/packages/flutter_datetime_picker_bdaya with same code. |
I was using white color for the background so this is what I did: color: Colors.white, Maybe you can do the same cuz it does not change every time. |
thanks, it was very annoying to see this issue and to see that the author is inactive. |
Please update this line
.pub-cache/hosted/pub.dartlang.org/flutter_datetime_picker-1.5.1/lib/flutter_datetime_picker.dart:311:32: Warning: Operand of null-aware operation '??' has
type 'Color' which excludes null.
color: theme.backgroundColor ?? Colors.white,
The text was updated successfully, but these errors were encountered: