Skip to content

[BUG] Errors in Console (Colors) #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Shinaya-1127 opened this issue Apr 24, 2021 · 2 comments
Open

[BUG] Errors in Console (Colors) #238

Shinaya-1127 opened this issue Apr 24, 2021 · 2 comments

Comments

@Shinaya-1127
Copy link

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?

@Silfalion
Copy link

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

@AlexHartford
Copy link
Contributor

It's just a warning, so no need to worry. It was fixed with this PR #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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants