cmdrootaccess / another-flushbar

A flexible widget for user notification. Customize your text, button, duration, animations and much more. For Android devs, it is made to replace Snackbars and Toasts.
https://pub.dev/packages/another_flushbar
MIT License
146 stars 90 forks source link

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

Open rt234cw opened 1 year ago

rt234cw commented 1 year ago
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 commented 9 months ago

Just put up await it will fix it up

Maxibond commented 3 months ago

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