flutter_datetime_picker
flutter_datetime_picker copied to clipboard
null safety
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' is from 'dart:ui'. color: theme.backgroundColor ?? Colors.white,
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.
- 'Color' is from 'dart:ui'. color: theme.backgroundColor ?? Colors.white,
How do you solve this issue?
Same warning . Operand of null-aware operation '??' has type 'Color' which excludes null.
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.
alternative https://pub.dev/packages/flutter_datetime_picker_bdaya with same code.
thanks, it was very annoying to see this issue and to see that the author is inactive.