flutter 3.44.0

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-16 22:51:33 +08:00
parent ad1583706a
commit 1fcc26464f
73 changed files with 1350 additions and 530 deletions

View File

@@ -321,37 +321,27 @@ class _EagerHorizontalDragGestureRecognizer
class RenderProgressBar extends RenderBox implements MouseTrackerAnnotation {
RenderProgressBar({
required Duration progress,
required Duration total,
required Duration buffered,
ValueChanged<Duration>? onSeek,
required this._total,
required this._buffered,
this._onSeek,
ThumbDragStartCallback? onDragStart,
ThumbDragUpdateCallback? onDragUpdate,
VoidCallback? onDragEnd,
required double barHeight,
required Color baseBarColor,
required Color progressBarColor,
required Color bufferedBarColor,
required this._barHeight,
required this._baseBarColor,
required this._progressBarColor,
required this._bufferedBarColor,
double thumbRadius = 20.0,
required Color thumbColor,
required Color thumbGlowColor,
required this._thumbColor,
required this._thumbGlowColor,
double thumbGlowRadius = 30.0,
bool thumbCanPaintOutsideBar = true,
}) : _total = total,
_buffered = buffered,
_onSeek = onSeek,
_onDragStartUserCallback = onDragStart,
this._thumbCanPaintOutsideBar = true,
}) : _onDragStartUserCallback = onDragStart,
_onDragUpdateUserCallback = onDragUpdate,
_onDragEndUserCallback = onDragEnd,
_barHeight = barHeight,
_baseBarColor = baseBarColor,
_progressBarColor = progressBarColor,
_bufferedBarColor = bufferedBarColor,
_thumbRadius = thumbRadius,
_thumbColor = thumbColor,
_thumbGlowColor = thumbGlowColor,
_thumbGlowRadius = thumbGlowRadius,
_paintThumbGlow = thumbGlowRadius > thumbRadius,
_thumbCanPaintOutsideBar = thumbCanPaintOutsideBar,
_hitTestSelf = onDragStart != null {
if (onDragStart != null) {
_drag = _EagerHorizontalDragGestureRecognizer()