From 5bda4167899410a5d360eacd6f4c49581527195d Mon Sep 17 00:00:00 2001 From: aagarwal1012 Date: Thu, 31 Jan 2019 03:44:02 +0530 Subject: [PATCH] updated to version 1.1.0 --- CHANGELOG.md | 3 +++ README.md | 25 +++++++++++++------------ lib/liquid_pull_to_refresh.dart | 2 ++ pubspec.yaml | 2 +- 4 files changed, 19 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f161960..a2d28d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.1.0 +* Added new parameter **scrollController** that can be added to control the `ScrollView` child. + ## 1.0.2 ## 1.0.1 diff --git a/README.md b/README.md index c8ba7e0..b4d4570 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Add this to your package's `pubspec.yaml` file: ```yaml dependencies: - liquid_pull_to_refresh: ^1.0.2 + liquid_pull_to_refresh: ^1.1.0 ``` ### 2. Install it @@ -103,17 +103,18 @@ If you do not want the opacity transition of child then set `showChildOpacityTra ### LiquidPullToRefresh Class -| Dart attribute | Datatype | Description | Default Value | -| :------------------------------------ | :-------------------------- | :----------------------------------------------------------- | :---------------------------: | -| child | ScrollView | The widget below this widget in the tree. | @required | -| onRefresh | RefreshCallback | A function that's called when the refreshing of page takes place. | @required | -| height | double | The distance from the child's top or bottom edge to where the box will settle after the spring effect. | 100.0 | -| springAnimationDurationInMilliseconds | int | Duration in milliseconds of springy effect that occurs when we leave dragging after full drag. | 1000 | -| borderWidth | double | Border width of progressing circle in Progressing Indicator. | 2.0 | -| showChildOpacityTransition | bool | Whether to show child opacity transition or not. | true | -| color | Color | The progress indicator's foreground color. | ThemeData.accentColor | -| backgroundColor | Color | The progress indicator's background color. | ThemeData.canvasColor | -| notificationPredicate | ScrollNotificationPredicate | A check that specifies whether a `ScrollNotification` should be handled by this widget. | null | +| Dart attribute | Datatype | Description | Default Value | +| :------------------------------------ | :-------------------------- | :----------------------------------------------------------- | :-------------------: | +| child | ScrollView | The widget below this widget in the tree. | @required | +| onRefresh | RefreshCallback | A function that's called when the refreshing of page takes place. | @required | +| height | double | The distance from the child's top or bottom edge to where the box will settle after the spring effect. | 100.0 | +| springAnimationDurationInMilliseconds | int | Duration in milliseconds of springy effect that occurs when we leave dragging after full drag. | 1000 | +| borderWidth | double | Border width of progressing circle in Progressing Indicator. | 2.0 | +| showChildOpacityTransition | bool | Whether to show child opacity transition or not. | true | +| color | Color | The progress indicator's foreground color. | ThemeData.accentColor | +| backgroundColor | Color | The progress indicator's background color. | ThemeData.canvasColor | +| notificationPredicate | ScrollNotificationPredicate | A check that specifies whether a `ScrollNotification` should be handled by this widget. | null | +| scrollController | ScrollCOntroller | Controls the `ScrollView` child. | null | For help on editing package code, view the [flutter documentation](https://flutter.io/developing-packages/). diff --git a/lib/liquid_pull_to_refresh.dart b/lib/liquid_pull_to_refresh.dart index 6b31b88..62221b6 100644 --- a/lib/liquid_pull_to_refresh.dart +++ b/lib/liquid_pull_to_refresh.dart @@ -111,6 +111,8 @@ class LiquidPullToRefresh extends StatefulWidget { /// else for more complicated layouts. final ScrollNotificationPredicate notificationPredicate; + /// Controls the [ScrollView] child. + /// [null] by default. final ScrollController scrollController; @override diff --git a/pubspec.yaml b/pubspec.yaml index d92e915..43d922c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: liquid_pull_to_refresh description: A beautiful and custom refresh indicator with some cool animations and transitions for flutter. -version: 1.0.2 +version: 1.1.0 author: Ayush Agarwal homepage: https://github.com/aagarwal1012/Liquid-Pull-To-Refresh/