mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-20 16:18:39 +00: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(
|
||||
|
||||
@@ -113,14 +113,11 @@ class _MemberSearchPageState extends State<MemberSearchPage> {
|
||||
Obx(
|
||||
() => _controller.hasData.value
|
||||
? const SizedBox.shrink()
|
||||
: FractionallySizedBox(
|
||||
heightFactor: 0.5,
|
||||
widthFactor: 1.0,
|
||||
child: Center(
|
||||
child: Text(
|
||||
'搜索「${_controller.uname}」的动态、视频',
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
: Align(
|
||||
alignment: const Alignment(0, -0.5),
|
||||
child: Text(
|
||||
'搜索「${_controller.uname}」的动态、视频',
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user