opt: refreshIndicator

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-11 17:34:21 +08:00
parent 2dbbf28d13
commit ba192a0356

View File

@@ -10,7 +10,7 @@ Widget refreshIndicator({
required Widget child, required Widget child,
}) { }) {
return RefreshIndicator( return RefreshIndicator(
displacement: 20, displacement: 10,
onRefresh: onRefresh, onRefresh: onRefresh,
child: child, child: child,
); );
@@ -22,7 +22,7 @@ Widget refreshIndicator({
// The over-scroll distance that moves the indicator to its maximum // The over-scroll distance that moves the indicator to its maximum
// displacement, as a percentage of the scrollable's container extent. // displacement, as a percentage of the scrollable's container extent.
const double _kDragContainerExtentPercentage = 0.1; const double _kDragContainerExtentPercentage = 0.15;
// How much the scroll's drag gesture can overshoot the RefreshIndicator's // How much the scroll's drag gesture can overshoot the RefreshIndicator's
// displacement; max displacement = _kDragSizeFactorLimit * displacement. // displacement; max displacement = _kDragSizeFactorLimit * displacement.