Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

fix tablet player panel

ErBW_sdc4a05ff08a4
diff --git a/lib/pages/player/player_item_panel.dart b/lib/pages/player/player_item_panel.dart
index e36babbd..c84ed3b7 100644
--- a/lib/pages/player/player_item_panel.dart
+++ b/lib/pages/player/player_item_panel.dart
@@ -720,7 +720,16 @@ class _PlayerItemPanelState extends State<PlayerItemPanel> {
child: ProgressBar(
thumbRadius: 8,
thumbGlowRadius: 18,
- timeLabelLocation: TimeLabelLocation.none,
+ timeLabelLocation: Utils.isTablet()
+ ? TimeLabelLocation.sides
+ : TimeLabelLocation.none,
+ timeLabelTextStyle: const TextStyle(
+ color: Colors.white,
+ fontSize: 12.0,
+ fontFeatures: [
+ FontFeature.tabularFigures(),
+ ],
+ ),
progress: playerController.currentPosition,
buffered: playerController.buffer,
total: playerController.duration,
@@ -782,7 +791,7 @@ class _PlayerItemPanelState extends State<PlayerItemPanel> {
videoPageController.currentRoad);
},
),
- if (Utils.isDesktop() || Utils.isTablet())
+ if (Utils.isDesktop())
Container(
padding: const EdgeInsets.only(left: 10.0),
child: Text(