Skip to content

Commit

Permalink
mod: 自动播放按钮改为官方版
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Jan 25, 2024
1 parent 3bff0c8 commit 16d2bbe
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions lib/pages/video/detail/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -466,26 +466,15 @@ class _VideoDetailPageState extends State<VideoDetailPage>
Positioned(
right: 12,
bottom: 10,
child: TextButton.icon(
style: ButtonStyle(
backgroundColor:
MaterialStateProperty
.resolveWith(
(states) {
return Colors.white
.withOpacity(0.8);
}),
),
onPressed: () =>
handlePlay(),
icon: const Icon(
Icons
.play_circle_outline,
size: 20,
),
label:
const Text('轻触封面播放'),
),
child: IconButton(
tooltip: '播放',
onPressed: () =>
handlePlay(),
icon: Image.asset(
'assets/images/play.png',
width: 60,
height: 60,
)),
),
],
)),
Expand Down

0 comments on commit 16d2bbe

Please sign in to comment.