flutter_datetime_picker
flutter_datetime_picker copied to clipboard
Theme color error
I got the following error regarding colors in the library.
/C:/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,
I get the same error using Linux as development system.
Flutter is already up to date on channel stable
Flutter 2.5.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 3595343e20 (11 days ago) • 2021-09-30 12:58:18 -0700
Engine • revision 6ac856380f
Tools • Dart 2.14.3
Looks like a duplicate of #269 #253 #239
Solution for now seems to be:
flutter_datetime_picker:
git:
url: https://github.com/Realank/flutter_datetime_picker.git
ref: master
We got the same error for months now...
Is this repo still maintained?
Due to author inactivity, I made a fork here https://pub.dev/packages/flutter_datetime_picker_bdaya https://github.com/Bdaya-Dev/flutter_datetime_picker
Feel free to create PRs and file issues until the original author is back
Is this repo orphaned?