flutter_datetime_picker
flutter_datetime_picker copied to clipboard
Running will warn
: Warning: Operand of null-aware operation '??' has type 'Color' which excludes null. ../…/lib/flutter_datetime_picker.dart:311
- 'Color' is from 'dart:ui'. color: theme.backgroundColor ?? Colors.white,
I am getting the same issue, have you figured it out?
Figured out how to fix it, the error is in line 311 and just change to a fixed color.
This will cause loss of functionality, you can just remove the constant color. As the error message states theme.backgroundColor is Color and therefore never null so the fall back ?? Colors.white is redundant and can simply be removed.