Skip to content

Commit

Permalink
fix: Material style performance optimization (#814).
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelongqy committed Apr 19, 2024
1 parent 3c78560 commit 790822a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Next
## 3.3.5
- fix: Material style performance optimization [#814](https://github.com/xuelongqy/flutter_easy_refresh/issues/814).
- fix: Issue during build when IndicatorStateListenable rebinds IndicatorNotifier [#607](https://github.com/xuelongqy/flutter_easy_refresh/issues/607).

## 3.3.4
Expand Down
3 changes: 3 additions & 0 deletions lib/src/styles/material/material_indicator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ class _MaterialIndicatorState extends State<_MaterialIndicator> {

/// Build [RefreshProgressIndicator].
Widget _buildIndicator() {
if (_offset <= 0) {
return const SizedBox();
}
return Container(
alignment: _axis == Axis.vertical
? (widget.reverse ? Alignment.topCenter : Alignment.bottomCenter)
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: easy_refresh
description: A flutter widget that provides pull-down refresh and pull-up load.
version: 3.3.4
version: 3.3.5
homepage: https://xuelongqy.github.io/flutter_easy_refresh
repository: https://github.com/xuelongqy/flutter_easy_refresh
issue_tracker: https://github.com/xuelongqy/flutter_easy_refresh/issues
Expand Down

0 comments on commit 790822a

Please sign in to comment.