Skip to content

Commit 01b71cb

Browse files
committed
* public refreshIndicatorMode and notificationDragOffset of PullToRefreshNotificationState
1 parent 4366341 commit 01b71cb

File tree

6 files changed

+11
-15
lines changed

6 files changed

+11
-15
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.1.1
2+
3+
* public refreshIndicatorMode and notificationDragOffset of PullToRefreshNotificationState
4+
15
## 3.1.0
26

37
* fix build error: use disallowIndicator instead of disallowGlow

example/.flutter-plugins-dependencies

Lines changed: 0 additions & 1 deletion
This file was deleted.

example/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,5 @@ build/
6969
!**/ios/**/default.pbxuser
7070
!**/ios/**/default.perspectivev3
7171
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
72+
.flutter-plugins-dependencies
73+
flutter_export_environment.sh

example/ios/Flutter/flutter_export_environment.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

lib/src/pull_to_refresh_notification.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ class PullToRefreshNotificationState extends State<PullToRefreshNotification>
158158
}
159159
}
160160

161+
PullToRefreshIndicatorMode? get refreshIndicatorMode => _mode;
162+
161163
Future<void>? _pendingRefreshFuture;
162164
bool? _isIndicatorAtTop;
163165
double? _dragOffset;
@@ -173,6 +175,8 @@ class PullToRefreshNotificationState extends State<PullToRefreshNotification>
173175
}
174176
}
175177

178+
double? get notificationDragOffset => _dragOffset;
179+
176180
static final Animatable<double> _threeQuarterTween =
177181
Tween<double>(begin: 0.0, end: 0.75);
178182
static final Animatable<double> _oneToZeroTween =

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: pull_to_refresh_notification
22
description: Flutter plugin for building pull to refresh effects with PullToRefreshNotification and PullToRefreshContainer quickly.
3-
version: 3.1.0
3+
version: 3.1.1
44
homepage: https://github.com/fluttercandies/pull_to_refresh_notification
55

66

0 commit comments

Comments
 (0)