Skip to content
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

null safety #279

Open
llTarll opened this issue Nov 15, 2021 · 7 comments
Open

null safety #279

llTarll opened this issue Nov 15, 2021 · 7 comments

Comments

@llTarll
Copy link

llTarll commented Nov 15, 2021

Please update this line

.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,
@kamalbunkar
Copy link

kamalbunkar commented Nov 18, 2021

yes, Same warning I am getting with version 1.5.1

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

@keanallen
Copy link

How do you solve this issue?

@sherwin
Copy link

sherwin commented Nov 29, 2021

Same warning .
Operand of null-aware operation '??' has type 'Color' which excludes null.

@jonasPfeifhofer
Copy link

Same warning here, still not fixed

@febritecno
Copy link

alternative https://pub.dev/packages/flutter_datetime_picker_bdaya with same code.

@mikegitdev
Copy link

I was using white color for the background so this is what I did: color: Colors.white, Maybe you can do the same cuz it does not change every time.

@davidmartinezfl
Copy link

alternative https://pub.dev/packages/flutter_datetime_picker_bdaya with same code.

thanks, it was very annoying to see this issue and to see that the author is inactive.

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

8 participants