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

[Question] SignInFormBloc.mapEventToState() issue #3

Closed
sQuark23 opened this issue May 6, 2020 · 4 comments
Closed

[Question] SignInFormBloc.mapEventToState() issue #3

sQuark23 opened this issue May 6, 2020 · 4 comments

Comments

@sQuark23
Copy link

sQuark23 commented May 6, 2020

Hi, I'm facing with next error:

error: The type 'Stream' implied by the 'yield' expression must be assignable to Stream<Null>

and it's appearing for every state.copyWith() call
image

Any thoughts on it?
I'm on Flutter v1.13.6 and Dart v2.8.0

@Teclys23
Copy link

Teclys23 commented May 6, 2020

Actually I have the same error, but if I run it anyway, the app is working pretty good.

@erkansahin
Copy link

The problem is about linting. You need to add the following code to the analysis.yaml file:

  strong-mode:
    implicit-casts: true

After the addition, the file should look like the following:

analyzer:
  strong-mode:
    implicit-casts: true
  errors:
    missing_required_param: error
    missing_return: error
    must_be_immutable: error

If you want to read more from the resource go to:
analysis options

@abiliodasilva
Copy link

Greeting @sQuark23.
I won't call this an answer by itself but if you update your Flutter version to the last stable version (1.17.0) the error don't show anymore.

I don't know the reason, but when I was using Flutter 1.12.13 the same error appeared, after update, everything got solved. Could it be a false positive of Dart Analyzer?

@sQuark23
Copy link
Author

sQuark23 commented May 11, 2020

Guys, thanks for your answers! You saved me a lot of time 🙏
@erkansahin, your solution fixed it

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

4 participants