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

package:flutter/src/widgets/navigator.dart': Failed assertion: line 5295 pos 12: '!_debugLocked': is not true #124

Open
rt234cw opened this issue Oct 3, 2023 · 2 comments

Comments

@rt234cw
Copy link

rt234cw commented Oct 3, 2023

Flushbar(        title: 'title',
                  message: 'ok',
                  flushbarPosition: FlushbarPosition.TOP,
                  duration: const Duration(seconds: 2),
                  animationDuration: Duration.zero,
                ).show(context);

While trying to disable animation by setting animationDuration : Duration.zero caused the exception
package:flutter/src/widgets/navigator.dart': Failed assertion: line 5295 pos 12: '!_debugLocked': is not true

Had searched for solution, however, I couldn't find one. Is there a solution of this issue?

@incrediblezayed
Copy link

Just put up await it will fix it up

@Maxibond
Copy link

Raise up this.
Generally, I don't want to have animations, so I put 0 as it seems logical to me.
But it breaks navigation, as I will not be able to use navigator.pop() -> it will try to remove /flushbarRoute instead

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