mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 04:00:28 +08:00
@@ -593,6 +593,22 @@ class _AudioPageState extends State<AudioPage> {
|
||||
);
|
||||
}
|
||||
|
||||
void _onDragStart(ThumbDragDetails details) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
void _onDragUpdate(ThumbDragDetails details) {
|
||||
_controller
|
||||
..isDragging = true
|
||||
..position.value = details.timeStamp;
|
||||
}
|
||||
|
||||
void _onSeek(Duration value) {
|
||||
_controller
|
||||
..player?.platform?.seek(value)
|
||||
..isDragging = false;
|
||||
}
|
||||
|
||||
Widget _buildProgressBar(ColorScheme colorScheme) {
|
||||
final primary = colorScheme.primary;
|
||||
final thumbGlowColor = primary.withAlpha(80);
|
||||
@@ -611,17 +627,9 @@ class _AudioPageState extends State<AudioPage> {
|
||||
thumbGlowColor: thumbGlowColor,
|
||||
thumbGlowRadius: 0,
|
||||
thumbRadius: 6,
|
||||
onDragStart: (_) {},
|
||||
onDragUpdate: (details) {
|
||||
_controller
|
||||
..isDragging = true
|
||||
..position.value = details.timeStamp;
|
||||
},
|
||||
onSeek: (value) {
|
||||
_controller
|
||||
..player?.platform?.seek(value)
|
||||
..isDragging = false;
|
||||
},
|
||||
onDragStart: _onDragStart,
|
||||
onDragUpdate: _onDragUpdate,
|
||||
onSeek: _onSeek,
|
||||
);
|
||||
if (Utils.isDesktop) {
|
||||
return MouseRegion(
|
||||
|
||||
Reference in New Issue
Block a user