diff --git a/lib/src/smart_refresher.dart b/lib/src/smart_refresher.dart index 576a3366..2954bc5d 100644 --- a/lib/src/smart_refresher.dart +++ b/lib/src/smart_refresher.dart @@ -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, diff --git a/test/refresh_controller_test.dart b/test/refresh_controller_test.dart index 5d01344b..32db8c5f 100644 --- a/test/refresh_controller_test.dart +++ b/test/refresh_controller_test.dart @@ -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(); diff --git a/test/refresh_physics_test.dart b/test/refresh_physics_test.dart index 0d65eab8..29b92613 100644 --- a/test/refresh_physics_test.dart +++ b/test/refresh_physics_test.dart @@ -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)); } });