in lib/ui/aliplayer_play_control_widget.dart [324:345]
void _onVerticalDragEnd(DragEndDetails details) {
if (_isLeftSide == null) return;
if (_isLeftSide!) {
// 如果有最后的值,传递给回调函数
if (_lastLeftVerticalValue != null) {
widget.onLeftVerticalDragEnd?.call(_lastLeftVerticalValue!);
}
// 重置左侧上次值
_lastLeftVerticalValue = null;
} else {
// 如果有最后的值,传递给回调函数
if (_lastRightVerticalValue != null) {
widget.onRightVerticalDragEnd?.call(_lastRightVerticalValue!);
}
// 重置右侧上次值
_lastRightVerticalValue = null;
}
_startPosition = null;
_isLeftSide = null;
}