Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/pages/video/detail/widgets/header_control.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,13 @@ class _HeaderControlState extends State<HeaderControl> {
// ),
// ),
// ),

ComBtn(
icon: const Icon(Icons.settings_overscan,
size: 20, color: Colors.white),
fuc: () => _.toggleVideoFit(),
),
SizedBox(width: buttonSpace),
ComBtn(
icon: const Icon(
Icons.closed_caption_off,
Expand Down
28 changes: 10 additions & 18 deletions lib/plugin/pl_player/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -267,29 +267,21 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
BottomControlType.space: const Spacer(),

/// 画面比例
BottomControlType.fit: SizedBox(
height: 30,
child: TextButton(
onPressed: () => _.toggleVideoFit(),
style: ButtonStyle(
padding: MaterialStateProperty.all(EdgeInsets.zero),
),
child: Obx(
() => Text(
_.videoFitDEsc.value,
style: const TextStyle(color: Colors.white, fontSize: 13),
),
),
),
),

// BottomControlType.fit: ComBtn(
// fuc: () => _.toggleVideoFit(),
// icon: const Icon(
// Icons.fit_screen_outlined,
// size: 20,
// color: Colors.white,
// )),
//
/// 播放速度
BottomControlType.speed: SizedBox(
width: 45,
height: 34,
child: TextButton(
style: ButtonStyle(
padding: MaterialStateProperty.all(EdgeInsets.zero),
padding: WidgetStateProperty.all(EdgeInsets.zero),
),
onPressed: () {},
child: Obx(
Expand Down Expand Up @@ -322,7 +314,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
BottomControlType.playOrPause,
BottomControlType.time,
BottomControlType.space,
BottomControlType.fit,
// BottomControlType.fit,
BottomControlType.fullscreen,
];
for (var i = 0; i < userSpecifyItem.length; i++) {
Expand Down