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

To fix Warning: Operand of null-aware operation '??' #261

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tushardubey121
Copy link

Warning: Operand of null-aware operation '??' has type 'Color' which excludes null.

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

To fix this waiting update the color theme null check like

"theme.backgroundColor == null ? Colors.white : theme.backgroundColor"

Warning: Operand of null-aware operation '??' has type 'Color' which excludes null.
 - 'Color' is from 'dart:ui'.
                  color: theme.backgroundColor ?? Colors.white,


To fix this waiting update the color theme null check like 

"theme.backgroundColor == null ?  Colors.white : theme.backgroundColor"
@lebomb
Copy link

lebomb commented Aug 2, 2021

Maybe you should add @Realank as reviewer? Wonder why this hasn't been merged yet 😅

@enyo
Copy link

enyo commented Aug 5, 2021

@tushardubey121 this PR does the opposite of the problem you're describing, and actually reintroduces the error again. The necessary change has already been merged here.

The problem is that it hasn't been released as a new version yet, so you can close your PR.

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

Successfully merging this pull request may close these issues.

None yet

3 participants