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.
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following assertion was thrown running a test:
'package:flutter/src/widgets/navigator.dart': Failed assertion: line 5021 pos 12:
'entry.currentState == _RouteLifecycle.popping ||
(entry.hasPage && entry.currentState.index < _RouteLifecycle.pop.index)': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially
more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
[https://github.com/flutter/flutter/issues/new?template=2_bug.md]()
When the exception was thrown, this was the stack:
#2 NavigatorState.finalizeRoute (package:flutter/src/widgets/navigator.dart:5021:12)
#3 OverlayRoute.didPop (package:flutter/src/widgets/routes.dart:74:18)
#4 FlushbarRoute.didPop (package:another_flushbar/flushbar_route.dart:393:18)
#5 _RouteEntry.handlePop (package:flutter/src/widgets/navigator.dart:2896:16)
#6 NavigatorState._flushHistoryUpdates (package:flutter/src/widgets/navigator.dart:3860:22)
#7 NavigatorState.pop (package:flutter/src/widgets/navigator.dart:4902:7)
#8 FlushbarRoute._configureTimer.<anonymous closure> (package:another_flushbar/flushbar_route.dart:403:22)
#15 FakeTimer._fire (package:fake_async/fake_async.dart:316:16)
#16 FakeAsync._fireTimersWhile (package:fake_async/fake_async.dart:240:13)
#17 FakeAsync.elapse (package:fake_async/fake_async.dart:137:5)
#18 AutomatedTestWidgetsFlutterBinding.pump.<anonymous closure> (package:flutter_test/src/binding.dart:986:28)
#21 TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:71:41)
#22 AutomatedTestWidgetsFlutterBinding.pump (package:flutter_test/src/binding.dart:982:27)
#23 WidgetTester.pump.<anonymous closure> (package:flutter_test/src/widget_tester.dart:608:53)
#26 TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:71:41)
#27 WidgetTester.pump (package:flutter_test/src/widget_tester.dart:608:27)
#28 main.<anonymous closure> ([file:///C:/projects/flutter/trainingsmagnet/test/example/flush_example_test.dart:22:20]())
<asynchronous suspension>
<asynchronous suspension>
(elided 13 frames from class _AssertionError, dart:async, and package:stack_trace)
The test description was:
test flushbar
════════════════════════════════════════════════════════════════════════════════════════════════════
Remove the Duration property in the widget and it works fine.
Minimal reproducable example:
Widget with flushbar:
Testclass:
Error
Remove the Duration property in the widget and it works fine.