opt ScrollBehavior

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-07-23 20:00:00 +08:00
parent fa75f5c542
commit 47aaa28898
8 changed files with 54 additions and 17 deletions

View File

@@ -549,7 +549,6 @@ class RefreshIndicatorState extends State<RefreshIndicator>
if (widget.isClampingScrollPhysics) {
return ScrollConfiguration(
behavior: RefreshScrollBehavior(
desktopDragDevices,
scrollPhysics: RefreshScrollPhysicsIOS(
parent: const RangeMaintainingScrollPhysics(),
onDrag: _onDrag,
@@ -562,7 +561,6 @@ class RefreshIndicatorState extends State<RefreshIndicator>
}
return ScrollConfiguration(
behavior: RefreshScrollBehavior(
desktopDragDevices,
scrollPhysics: RefreshScrollPhysics(
parent: const RangeMaintainingScrollPhysics(),
onDrag: _onDrag,
@@ -625,8 +623,7 @@ class RefreshIndicatorState extends State<RefreshIndicator>
typedef refreshIndicator = RefreshIndicator;
class RefreshScrollBehavior extends CustomScrollBehavior {
const RefreshScrollBehavior(
super.dragDevices, {
const RefreshScrollBehavior({
required this.scrollPhysics,
});