flutter_datetime_picker
flutter_datetime_picker copied to clipboard
[BUG] Errors in Console (Colors)
good evening
i found some errors in Flutter_datetime_picker-1.5.1, but it seems everything works ??
../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.
- 'Color' is from 'dart:ui'. color: theme.backgroundColor ?? Colors.white,
How do I deal with it?
A PR was already submitted for this issue, so hopefully it should appear on pub.dev soon.
It's just a warning, so no need to worry. It was fixed with this PR https://github.com/Realank/flutter_datetime_picker/pull/236 but apparently didn't make it into the latest deployment.
If you want, pulling from master instead of pub.dev should solve it until a new version is deployed.
flutter_datetime_picker:
git:
url: https://github.com/Realank/flutter_datetime_picker.git
ref: master