Skip to content

Commit 790822a

Browse files
committed
fix: Material style performance optimization (#814).
1 parent 3c78560 commit 790822a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
## Next
1+
## 3.3.5
2+
- fix: Material style performance optimization [#814](https://github.com/xuelongqy/flutter_easy_refresh/issues/814).
23
- fix: Issue during build when IndicatorStateListenable rebinds IndicatorNotifier [#607](https://github.com/xuelongqy/flutter_easy_refresh/issues/607).
34

45
## 3.3.4

lib/src/styles/material/material_indicator.dart

+3
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ class _MaterialIndicatorState extends State<_MaterialIndicator> {
139139

140140
/// Build [RefreshProgressIndicator].
141141
Widget _buildIndicator() {
142+
if (_offset <= 0) {
143+
return const SizedBox();
144+
}
142145
return Container(
143146
alignment: _axis == Axis.vertical
144147
? (widget.reverse ? Alignment.topCenter : Alignment.bottomCenter)

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: easy_refresh
22
description: A flutter widget that provides pull-down refresh and pull-up load.
3-
version: 3.3.4
3+
version: 3.3.5
44
homepage: https://xuelongqy.github.io/flutter_easy_refresh
55
repository: https://github.com/xuelongqy/flutter_easy_refresh
66
issue_tracker: https://github.com/xuelongqy/flutter_easy_refresh/issues

0 commit comments

Comments
 (0)