flutter_datetime_picker
flutter_datetime_picker copied to clipboard
Color' is from 'dart:ui'. color: theme.backgroundColor ?? Colors.white,
/FlutterTools/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,
We are also having the same warning message on every build/hot reload.
Alright, the library developer need to fix it :)
They do not fix it ver long time... I fix it myself. it is simple. simply change the code "color: theme.backgroundColor ?? Colors.white" to "color: theme.backgroundColor".
Thanks, Kim! I'll try to fix it :)
On Tue, Aug 31, 2021 at 12:45 PM Taehyung Kim @.***> wrote:
They do not fix it ver long time... I fix it myself. it is simple. simply change the code "color: theme.backgroundColor ?? Colors.white" to "color: theme.backgroundColor".
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Realank/flutter_datetime_picker/issues/269#issuecomment-908984546, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE3SYEWU4JWIKWCWRRO3RLDT7SCCTANCNFSM5CY7ZZPA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
just noisy
wait notification fix.
Needs to make backgroundColor nullable. For now we need to make nullable as mentioned on image below until library gets updated.
.
@tayyabmughal676 Has this issue been resolved?
Me too I can reproduce this error with the last version. Could you guys fix this bug, please?
Thanks in advance!
ANy update on this its driving me nuts?
They solved but still not published to pub.dev just use
flutter_datetime_picker:
git:
url: https://github.com/Realank/flutter_datetime_picker.git
or fork and use yours