flutter_datetime_picker icon indicating copy to clipboard operation
flutter_datetime_picker copied to clipboard

[BUG] Errors in Console (Colors)

Open Shinaya-1127 opened this issue 3 years ago • 2 comments

good evening

i found some errors in Flutter_datetime_picker-1.5.1, but it seems everything works ??

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

How do I deal with it?

Shinaya-1127 avatar Apr 24 '21 14:04 Shinaya-1127

A PR was already submitted for this issue, so hopefully it should appear on pub.dev soon.

Silfalion avatar Apr 25 '21 07:04 Silfalion

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