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

Navigator is not working with this approach for navigating to another screen #2

Open
Rajakalla opened this issue Feb 9, 2019 · 0 comments

Comments

@Rajakalla
Copy link

I wanted to Navigate to another screen. But it is throwing error.I am not understanding what to do now.Hoping quick response for my problem.

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (10712): The following assertion was thrown building StreamBuilder(dirty, state:
I/flutter (10712): _StreamBuilderBaseState<LoginScreenViewModel, AsyncSnapshot>#4385a):
I/flutter (10712): setState() or markNeedsBuild() called during build.
I/flutter (10712): This Overlay widget cannot be marked as needing to build because the framework is already in the
I/flutter (10712): process of building widgets. A widget can be marked as needing to be built during the build phase
I/flutter (10712): only if one of its ancestors is currently building. This exception is allowed because the framework
I/flutter (10712): builds parent widgets before children, which means a dirty descendant will always be built.
I/flutter (10712): Otherwise, the framework might not visit this widget during this build phase.
I/flutter (10712): The widget on which setState() or markNeedsBuild() was called was:
I/flutter (10712): Overlay-[LabeledGlobalKey#4f181](state: OverlayState#8bb69(entries:
I/flutter (10712): [OverlayEntry#c0a21(opaque: false; maintainState: false), OverlayEntry#3d106(opaque: false;
I/flutter (10712): maintainState: true), OverlayEntry#8b1fd(opaque: false; maintainState: false),
I/flutter (10712): OverlayEntry#a50bf(opaque: false; maintainState: true)]))
I/flutter (10712): The widget which was currently being built when the offending call was made was:
I/flutter (10712): StreamBuilder(dirty, state: _StreamBuilderBaseState<LoginScreenViewModel,
I/flutter (10712): AsyncSnapshot>#4385a)

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

1 participant