opt slide dismiss

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-28 18:03:15 +08:00
parent 08a33d9ce5
commit b09a41af24
2 changed files with 8 additions and 2 deletions

View File

@@ -925,8 +925,10 @@ class CustomScrollableState extends State<CustomScrollable>
_isSliding = false;
}
} else if (_isSliding == true) {
final from = _downPos!.dx;
final to = localPosition.dx;
_animController.value =
(localPosition.dx - _downPos!.dx).abs() / _maxWidth;
math.max(0, _isRTL ? from - to : to - from) / _maxWidth;
}
}