Skip to content

Commit

Permalink
Revert "springDescription value set to default"
Browse files Browse the repository at this point in the history
This reverts commit d6dea9b
  • Loading branch information
peng8350 committed Jul 24, 2020
1 parent d47278d commit fd73e59
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/src/smart_refresher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -884,9 +884,9 @@ class RefreshConfiguration extends InheritedWidget {
this.enableLoadingWhenNoData: false,
this.enableBallisticRefresh: false,
this.springDescription: const SpringDescription(
mass: 0.5,
stiffness: 100,
damping: 15.6,
mass: 2.2,
stiffness: 150,
damping: 16,
),
this.enableScrollWhenRefreshCompleted: false,
this.enableLoadingWhenFailed: true,
Expand Down
2 changes: 1 addition & 1 deletion test/refresh_controller_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void testRequestFun(bool full) {
await tester.pumpAndSettle(Duration(milliseconds: 2000));
_refreshController.position.jumpTo(0);
_refreshController.requestTwoLevel();
await tester.pumpAndSettle(Duration(milliseconds: 300));
await tester.pumpAndSettle(Duration(milliseconds: 200));
expect(_refreshController.headerStatus, RefreshStatus.twoLeveling);
_refreshController.twoLevelComplete();
await tester.pumpAndSettle();
Expand Down
2 changes: 1 addition & 1 deletion test/refresh_physics_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ void main() {
expect(
_refreshController.position.pixels -
_refreshController.position.maxScrollExtent,
lessThanOrEqualTo(320.0));
lessThanOrEqualTo(300.0));
await tester.pump(const Duration(milliseconds: 20));
}
});
Expand Down

0 comments on commit fd73e59

Please sign in to comment.