flutter_datetime_picker
flutter_datetime_picker copied to clipboard
'Color' is from 'dart:ui'. color: theme.backgroundColor ?? Colors.white,
/E:/Andriod/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 also get this error every time execute flutter run. Happen after migrating to flutter channel master.
I have this error too.
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,
Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 2.0.2, on Microsoft Windows [Version 10.0.19041.928], locale tr-TR) [√] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [√] Chrome - develop for the web [√] Android Studio (version 4.1.0) [√] VS Code (version 1.55.1) [√] Connected device (3 available)
• No issues found!
I have this error too.
I get this error too.
This problem has already been fixed, but has not been released yet. Would be super nice with a quick release, as my release builds are failing at the moment!
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
Same here
me too, I have some error, 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 hope the fixed package will be released soon.
/opt/homebrew/Caskroom/flutter/2.2.2/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,
this issue started to be really annoying, the funny thing is that it is fixed but not deployed
It would certainly be helpful if the project owner added collaborators to this project to keep it alive.
What can we do to have this released as a hot fix / minor update?, we're wrapping up a release and this is the lone outstanding warning on our runs/builds... we've been seeing it through the whole dev process patiently waiting for the committed fix to make it to a release.
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