AndreHaueisen / flushbar

Custom widget for Flutter
Other
1.01k stars 172 forks source link

'package:flushbar/flushbar_route.dart': Failed assertion: line 308 pos 18: 'overlayEntries.isEmpty': is not true. #167

Open Tobi696 opened 3 years ago

Tobi696 commented 3 years ago

When trying to show a basic Flushbar, I get this error after the slide-out animation has ended: 'package:flushbar/flushbar_route.dart': Failed assertion: line 308 pos 18: 'overlayEntries.isEmpty': is not true.

Code:

Flushbar(
  title: "fsdf",
  message: "fsdfsf",
  duration: Duration(seconds: 3),
).show(navigatorKey.currentContext);
crabio commented 3 years ago

Duplicate #160

cmdrootaccess commented 3 years ago

please use another_flushbar: ^1.10.5 . same code just fixed this issue

andaryjo commented 3 years ago

@cmdrootaccess Thanks, this works!

serkanayaz commented 3 years ago

I solved for me Use overlay_support instead of flushbar https://pub.dev/packages/overlay_support

mikeesouth commented 3 years ago

@AndreHaueisen Are you still maintaining flushbar repo? Maybe cmdrootaccess can supply you with a PR of the fix, would you accept it? If the repo is dead, please tell us so that we can make an official move to another library such as overlay_support.

I really like flushbar but I need something that is maintained.

houdayec commented 3 years ago

@AndreHaueisen Please answer, do be afraid of losing users of your library, either add contributors or mark it as UNMAINTAINED.

jonasN5 commented 3 years ago

Ye this package is great, would be awesome if someone decided to take it over. Displaying in a similar form to snackbar is a lot prettier than a toast.

HTLGKR-Topsl696 commented 3 years ago

@themadmrj Use the package another_flushbar instead

jonasN5 commented 3 years ago

@themadmrj Use the package another_flushbar instead

Ye already made the switch, thanks a bunch :)

jayeshpansheriya commented 2 years ago

you can also use https://pub.dev/packages/awesome_extensions, with some extra feature and with extension, as well as null safety support.