flutter_datetime_picker icon indicating copy to clipboard operation
flutter_datetime_picker copied to clipboard

'Color' is from 'dart:ui'. color: theme.backgroundColor ?? Colors.white,

Open Sreejithtechno opened this issue 4 years ago • 13 comments
trafficstars

/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,

Sreejithtechno avatar Apr 27 '21 02:04 Sreejithtechno

I also get this error every time execute flutter run. Happen after migrating to flutter channel master.

RaisTMJ avatar Apr 28 '21 09:04 RaisTMJ

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!

viperciyes avatar Apr 28 '21 23:04 viperciyes

I have this error too.

wd308389182 avatar Apr 29 '21 07:04 wd308389182

I get this error too.

smobx1 avatar Apr 29 '21 13:04 smobx1

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!

jomag avatar Apr 29 '21 21:04 jomag

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

AlexHartford avatar Apr 30 '21 16:04 AlexHartford

Same here

marcobraghim avatar May 04 '21 21:05 marcobraghim

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,

bayuu avatar Jun 24 '21 20:06 bayuu

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,  

myConsciousness avatar Jul 11 '21 14:07 myConsciousness

this issue started to be really annoying, the funny thing is that it is fixed but not deployed

Fethi-Hamdani avatar Jul 23 '21 10:07 Fethi-Hamdani

It would certainly be helpful if the project owner added collaborators to this project to keep it alive.

AlexHartford avatar Jul 23 '21 14:07 AlexHartford

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.

apparatchiki avatar Sep 19 '21 22:09 apparatchiki

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

ahmednfwela avatar Oct 29 '21 03:10 ahmednfwela