Warning: Operand of null-aware operation '??' has type 'Color' which excludes null.
../../../.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, ^
Any update on this? I'm encountering the same error after integrating this plugin.
me too
This was "solved" for me by changing my pubspec entry to the following:
flutter_datetime_picker:
git:
url: https://github.com/AlexHartford/flutter_datetime_picker.git
ref: master
It's worth noting that, apart from specific functionality that I am not aware of, CupertinoDatePicker in the built-in Flutter library now renders this package obsolete.
We have a fork up and running that's compatible with flutter 3.10 https://github.com/Bdaya-Dev/flutter_datetime_picker https://pub.dev/packages/flutter_datetime_picker_bdaya