From 130bf3611594e4d84e07d22a16678fed9a42594a Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Sun, 12 Jan 2025 11:12:57 +0800 Subject: [PATCH] mod: def refresh displacement Signed-off-by: bggRGjQaUbCoE --- lib/common/widgets/refresh_indicator.dart | 2 +- lib/utils/storage.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common/widgets/refresh_indicator.dart b/lib/common/widgets/refresh_indicator.dart index 8dc92039..5ba208d2 100644 --- a/lib/common/widgets/refresh_indicator.dart +++ b/lib/common/widgets/refresh_indicator.dart @@ -23,7 +23,7 @@ Widget refreshIndicator({ // The over-scroll distance that moves the indicator to its maximum // displacement, as a percentage of the scrollable's container extent. -double displacement = 40; +double displacement = 20; double kDragContainerExtentPercentage = 0.25; // How much the scroll's drag gesture can overshoot the RefreshIndicator's diff --git a/lib/utils/storage.dart b/lib/utils/storage.dart index 291584aa..2ce87749 100644 --- a/lib/utils/storage.dart +++ b/lib/utils/storage.dart @@ -221,7 +221,7 @@ class GStorage { setting.get(SettingBoxKey.refreshDragPercentage, defaultValue: 0.25); static double get refreshDisplacement => - setting.get(SettingBoxKey.refreshDisplacement, defaultValue: 40.0); + setting.get(SettingBoxKey.refreshDisplacement, defaultValue: 20.0); static String get blockUserID { String blockUserID =