mod: 自动播放按钮改为官方版

This commit is contained in:
orz12
2024-01-25 12:59:21 +08:00
parent aaeecc9e53
commit 545def36e6

View File

@ -466,26 +466,15 @@ class _VideoDetailPageState extends State<VideoDetailPage>
Positioned( Positioned(
right: 12, right: 12,
bottom: 10, bottom: 10,
child: TextButton.icon( child: IconButton(
style: ButtonStyle( tooltip: '播放',
backgroundColor: onPressed: () =>
MaterialStateProperty handlePlay(),
.resolveWith( icon: Image.asset(
(states) { 'assets/images/play.png',
return Colors.white width: 60,
.withOpacity(0.8); height: 60,
}), )),
),
onPressed: () =>
handlePlay(),
icon: const Icon(
Icons
.play_circle_outline,
size: 20,
),
label:
const Text('轻触封面播放'),
),
), ),
], ],
)), )),