Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-15 12:38:12 +08:00
parent 14ae61f891
commit 4cfcf18bc9
3 changed files with 25 additions and 20 deletions

View File

@@ -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': '',

View File

@@ -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(

View File

@@ -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,
), ),
), ),
), ),
),
], ],
), ),
), ),