mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
@@ -68,7 +68,7 @@ class SearchHttp {
|
|||||||
'category_id': ?categoryId,
|
'category_id': ?categoryId,
|
||||||
'pubtime_begin_s': ?pubBegin,
|
'pubtime_begin_s': ?pubBegin,
|
||||||
'pubtime_end_s': ?pubEnd,
|
'pubtime_end_s': ?pubEnd,
|
||||||
'ad_resource': 5654,
|
// 'ad_resource': 5654,
|
||||||
'__refresh__': true,
|
'__refresh__': true,
|
||||||
'_extra': '',
|
'_extra': '',
|
||||||
'context': '',
|
'context': '',
|
||||||
|
|||||||
@@ -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) {
|
Widget _buildProgressBar(ColorScheme colorScheme) {
|
||||||
final primary = colorScheme.primary;
|
final primary = colorScheme.primary;
|
||||||
final thumbGlowColor = primary.withAlpha(80);
|
final thumbGlowColor = primary.withAlpha(80);
|
||||||
@@ -611,17 +627,9 @@ class _AudioPageState extends State<AudioPage> {
|
|||||||
thumbGlowColor: thumbGlowColor,
|
thumbGlowColor: thumbGlowColor,
|
||||||
thumbGlowRadius: 0,
|
thumbGlowRadius: 0,
|
||||||
thumbRadius: 6,
|
thumbRadius: 6,
|
||||||
onDragStart: (_) {},
|
onDragStart: _onDragStart,
|
||||||
onDragUpdate: (details) {
|
onDragUpdate: _onDragUpdate,
|
||||||
_controller
|
onSeek: _onSeek,
|
||||||
..isDragging = true
|
|
||||||
..position.value = details.timeStamp;
|
|
||||||
},
|
|
||||||
onSeek: (value) {
|
|
||||||
_controller
|
|
||||||
..player?.platform?.seek(value)
|
|
||||||
..isDragging = false;
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
if (Utils.isDesktop) {
|
if (Utils.isDesktop) {
|
||||||
return MouseRegion(
|
return MouseRegion(
|
||||||
|
|||||||
@@ -113,17 +113,14 @@ class _MemberSearchPageState extends State<MemberSearchPage> {
|
|||||||
Obx(
|
Obx(
|
||||||
() => _controller.hasData.value
|
() => _controller.hasData.value
|
||||||
? const SizedBox.shrink()
|
? const SizedBox.shrink()
|
||||||
: FractionallySizedBox(
|
: Align(
|
||||||
heightFactor: 0.5,
|
alignment: const Alignment(0, -0.5),
|
||||||
widthFactor: 1.0,
|
|
||||||
child: Center(
|
|
||||||
child: Text(
|
child: Text(
|
||||||
'搜索「${_controller.uname}」的动态、视频',
|
'搜索「${_controller.uname}」的动态、视频',
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user