opt: videoDetail appbar

This commit is contained in:
guozhigq
2024-11-17 14:05:04 +08:00
parent bdedd78e30
commit e5d3e84b61
2 changed files with 42 additions and 27 deletions

View File

@ -34,21 +34,16 @@ class ScrollAppBar extends StatelessWidget {
child: AppBar(
primary: false,
centerTitle: true,
title: TextButton(
title: TextButton.icon(
onPressed: () => callback(),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
const Icon(Icons.play_arrow_rounded),
Text(
playerStatus == PlayerStatus.paused
? '继续播放'
: playerStatus == PlayerStatus.completed
? '重新播放'
: '播放中',
)
],
label: Text(
playerStatus == PlayerStatus.paused
? '继续播放'
: playerStatus == PlayerStatus.completed
? '重新播放'
: '播放中',
),
icon: const Icon(Icons.play_arrow_rounded),
),
// actions: [
// IconButton(