diff --git a/CHANGELOG.md b/CHANGELOG.md index 40bd44d..a2766ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [1.2.2] - 2019-22-02 +- Fixed a bug when push an route after flushbar, and flushbar timer pop the current route out + ## [1.2.1] - 2019-11-01 - aroundPadding is now more flexible and receives EdgeInsets instead of an int diff --git a/lib/flushbar.dart b/lib/flushbar.dart index 1afd684..34fb132 100644 --- a/lib/flushbar.dart +++ b/lib/flushbar.dart @@ -240,7 +240,9 @@ class _FlushbarRoute extends OverlayRoute { _timer.cancel(); } _timer = new Timer(flushbar.duration, () { - navigator.pop(); + if(flushbar._flushbarRoute.isCurrent){ + navigator.pop(); + } }); } else { if (_timer != null) {