Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 3.0.2
* Add borderRadius and gradient for the back container

## 3.0.1
* Fixed Deprecated Methods that are no longer used.
* General code cleanup.
Expand Down Expand Up @@ -38,4 +41,4 @@
* Fixed dart analysis issue.

## 1.0.0
* Initial Release.
* Initial Release.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Add this to your package's `pubspec.yaml` file:

```yaml
dependencies:
liquid_pull_to_refresh: ^3.0.1
liquid_pull_to_refresh: ^3.0.2
```

### 2. Install it
Expand Down
14 changes: 12 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ class _MyHomePageState extends State<MyHomePage> {
GlobalKey<LiquidPullToRefreshState>();

static int refreshNum = 10; // number that changes when refreshed
Stream<int> counterStream =
Stream<int>.periodic(const Duration(seconds: 3), (x) => refreshNum);
Stream<int> counterStream = Stream<int>.periodic(const Duration(seconds: 3), (x) => refreshNum);

ScrollController? _scrollController;

Expand Down Expand Up @@ -111,6 +110,17 @@ class _MyHomePageState extends State<MyHomePage> {
key: _refreshIndicatorKey,
onRefresh: _handleRefresh,
showChildOpacityTransition: false,
borderRadius: BorderRadius.circular(50),
springAnimationDurationInMilliseconds: 100,
gradient: const LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
stops: [0.6, 0.9],
colors: [
Colors.transparent,
Colors.red,
],
),
child: StreamBuilder<int>(
stream: counterStream,
builder: (context, snapshot) {
Expand Down
Loading