Skip to content

Commit

Permalink
feat: EasyRefreshController add headerState, footerState (#635).
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelongqy committed Dec 30, 2022
1 parent 508dab0 commit 1bbd3ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Next
- feat: EasyRefreshController add headerState, footerState [#635](https://github.com/xuelongqy/flutter_easy_refresh/issues/635)
- feat: Add triggerWhenRelease and triggerWhenReleaseNoWait [#593](https://github.com/xuelongqy/flutter_easy_refresh/issues/593).
- fix: Error when using NotLoadFooter with clamping. Thanks Pwuts for [PR#659](https://github.com/xuelongqy/flutter_easy_refresh/issues/659).
- feat: Add maxOverOffset [#590](https://github.com/xuelongqy/flutter_easy_refresh/issues/590).
Expand Down
6 changes: 6 additions & 0 deletions lib/src/controller/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,10 @@ class EasyRefreshController {
void dispose() {
_state = null;
}

/// Get header state.
IndicatorState? get headerState => _state?._headerNotifier.indicatorState;

/// Get footer state.
IndicatorState? get footerState => _state?._footerNotifier.indicatorState;
}

0 comments on commit 1bbd3ab

Please sign in to comment.