diff --git a/lib/src/pull_to_refresh_notification.dart b/lib/src/pull_to_refresh_notification.dart index 9561939..ef3d3d2 100644 --- a/lib/src/pull_to_refresh_notification.dart +++ b/lib/src/pull_to_refresh_notification.dart @@ -394,8 +394,10 @@ class PullToRefreshNotificationState extends State completer.complete(); if (success) { _dismiss(RefreshIndicatorMode.done); - } else - _refreshIndicatorMode = RefreshIndicatorMode.error; + } else { + _dismiss(RefreshIndicatorMode.canceled); + // _refreshIndicatorMode = RefreshIndicatorMode.error; + } } }); }