Compare commits

...

1 Commits

Author SHA1 Message Date
chen08209
48391ecbbf Fix scroll physics error 2025-02-09 16:51:30 +08:00
2 changed files with 9 additions and 4 deletions

View File

@@ -45,6 +45,13 @@ class ShowBarScrollBehavior extends BaseScrollBehavior {
} }
class NextClampingScrollPhysics extends ClampingScrollPhysics { class NextClampingScrollPhysics extends ClampingScrollPhysics {
const NextClampingScrollPhysics({super.parent});
@override
NextClampingScrollPhysics applyTo(ScrollPhysics? ancestor) {
return NextClampingScrollPhysics(parent: buildParent(ancestor));
}
@override @override
Simulation? createBallisticSimulation( Simulation? createBallisticSimulation(
ScrollMetrics position, double velocity) { ScrollMetrics position, double velocity) {
@@ -115,9 +122,7 @@ class ReverseScrollPosition extends ScrollPositionWithSingleContext {
super.keepScrollOffset, super.keepScrollOffset,
super.oldPosition, super.oldPosition,
super.debugLabel, super.debugLabel,
}) : _initialPixels = initialPixels ?? 0; });
final double _initialPixels;
bool _isInit = false; bool _isInit = false;

View File

@@ -1,7 +1,7 @@
name: fl_clash name: fl_clash
description: A multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free. description: A multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free.
publish_to: 'none' publish_to: 'none'
version: 0.8.75+202502091 version: 0.8.76+202502092
environment: environment:
sdk: '>=3.1.0 <4.0.0' sdk: '>=3.1.0 <4.0.0'