降低进度条与播放时间的更新频率

新建positionSeconds、sliderPositionSeconds、durationSeconds、bufferedSeconds变量,仅在秒数发生变化时再更新,避免每帧都在重绘控件
This commit is contained in:
orz12
2023-12-19 19:18:06 +08:00
parent 6dd1360a76
commit cd8078a8fa
5 changed files with 91 additions and 53 deletions

View File

@ -236,7 +236,7 @@ class _BangumiPanelState extends State<BangumiPanel> {
children: [
if (i == currentIndex) ...[
Image.asset(
'assets/images/live.gif',
'assets/images/live.png',
color:
Theme.of(context).colorScheme.primary,
height: 12,