diff --git a/mobile/lib/presentation/widgets/timeline/scrubber.widget.dart b/mobile/lib/presentation/widgets/timeline/scrubber.widget.dart index f88c123e1a..248fc6b579 100644 --- a/mobile/lib/presentation/widgets/timeline/scrubber.widget.dart +++ b/mobile/lib/presentation/widgets/timeline/scrubber.widget.dart @@ -354,22 +354,24 @@ class ScrubberState extends ConsumerState isDragging: _isDragging, ), ), - PositionedDirectional( - top: _thumbTopOffset + widget.topPadding, - end: 0, - child: RepaintBoundary( - child: GestureDetector( - onVerticalDragStart: _onDragStart, - onVerticalDragUpdate: _onDragUpdate, - onVerticalDragEnd: _onDragEnd, - child: _Scrubber( - thumbAnimation: _thumbAnimation, - labelAnimation: _labelAnimation, - label: label, + if (_scrollController.hasClients && + _scrollController.position.maxScrollExtent > 0) + PositionedDirectional( + top: _thumbTopOffset + widget.topPadding, + end: 0, + child: RepaintBoundary( + child: GestureDetector( + onVerticalDragStart: _onDragStart, + onVerticalDragUpdate: _onDragUpdate, + onVerticalDragEnd: _onDragEnd, + child: _Scrubber( + thumbAnimation: _thumbAnimation, + labelAnimation: _labelAnimation, + label: label, + ), ), ), ), - ), ], ), );