Skip to content

Commit

Permalink
Merge pull request #33 from surfstudio/SNP-672_prepare-release
Browse files Browse the repository at this point in the history
chore: Prepare release
  • Loading branch information
internetova authored Mar 28, 2024
2 parents 288c357 + 0895cbf commit b98ebda
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"MD041": false,
"MD033": false,
"MD013": false
}
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 1.1.0
* Added support for all TargetPlatform.
* Added cacheExtent property
* Added cacheExtent property.
* SDK version is up.

## 1.0.2
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ This package is part of the [SurfGear](https://github.com/surfstudio/SurfGear) t

Widget for refresh by swipe.

- :1234: Enabled on every platform - the package is fully written on Flutter side and enabled on every platform.
- :recycle: Fully covered by tests - guaranteeing the result and expectations from this package.
- :notebook_with_decorative_cover: End-to-end documentation - every aspect of implementation is documented, so there is full understanding.
- :cow2: Support from the best Flutter experts - we are open to any enhancement ideas and contributions.

![](https://i.ibb.co/7Kmy91f/material.gif)
![](https://i.ibb.co/smPxRp7/cupertino.gif)

Expand Down
12 changes: 10 additions & 2 deletions lib/src/material_swipe_refresh.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ class MaterialSwipeRefresh extends SwipeRefreshBase {

class _MaterialSwipeRefreshState
extends SwipeRefreshBaseState<MaterialSwipeRefresh> {
late final ScrollController _scrollController;

@override
void initState() {
super.initState();
_scrollController = widget.scrollController ?? ScrollController();
}

@override
Widget buildRefresher(
Key key,
Expand All @@ -109,7 +117,7 @@ class _MaterialSwipeRefreshState
shrinkWrap: widget.shrinkWrap,
padding: widget.padding,
cacheExtent: widget.cacheExtent,
controller: widget.scrollController ?? ScrollController(),
controller: _scrollController,
physics: AlwaysScrollableScrollPhysics(parent: widget.physics),
keyboardDismissBehavior: widget.keyboardDismissBehavior ??
ScrollViewKeyboardDismissBehavior.manual,
Expand All @@ -120,7 +128,7 @@ class _MaterialSwipeRefreshState
padding: widget.padding,
cacheExtent: widget.cacheExtent,
childrenDelegate: widget.childrenDelegate!,
controller: widget.scrollController ?? ScrollController(),
controller: _scrollController,
keyboardDismissBehavior: widget.keyboardDismissBehavior ??
ScrollViewKeyboardDismissBehavior.manual,
physics: AlwaysScrollableScrollPhysics(parent: widget.physics),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: swipe_refresh
version: 1.0.5
version: 1.1.0
description: Set of widgets provides make refresh by using pull down gesture.
repository: "https://github.com/surfstudio/flutter-swipe-refresh"
issue_tracker: "https://github.com/surfstudio/flutter-swipe-refresh/issues"
Expand Down

0 comments on commit b98ebda

Please sign in to comment.