mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: live fit btn
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -77,33 +77,37 @@ class _BottomControlState extends State<BottomControl> {
|
|||||||
// ),
|
// ),
|
||||||
// ),
|
// ),
|
||||||
// const SizedBox(width: 4),
|
// const SizedBox(width: 4),
|
||||||
Container(
|
Obx(
|
||||||
height: 30,
|
() => Container(
|
||||||
margin: const EdgeInsets.symmetric(horizontal: 10),
|
height: 30,
|
||||||
alignment: Alignment.center,
|
margin: const EdgeInsets.symmetric(horizontal: 10),
|
||||||
child: PopupMenuButton<BoxFit>(
|
alignment: Alignment.center,
|
||||||
onSelected: widget.controller.toggleVideoFit,
|
child: PopupMenuButton<BoxFit>(
|
||||||
initialValue: widget.controller.videoFit.value,
|
onSelected: widget.controller.toggleVideoFit,
|
||||||
color: Colors.black.withOpacity(0.8),
|
initialValue: widget.controller.videoFit.value,
|
||||||
itemBuilder: (BuildContext context) {
|
color: Colors.black.withOpacity(0.8),
|
||||||
return BoxFit.values.map((BoxFit boxFit) {
|
itemBuilder: (BuildContext context) {
|
||||||
return PopupMenuItem<BoxFit>(
|
return BoxFit.values.map((BoxFit boxFit) {
|
||||||
height: 35,
|
return PopupMenuItem<BoxFit>(
|
||||||
padding: const EdgeInsets.only(left: 30),
|
height: 35,
|
||||||
value: boxFit,
|
padding: const EdgeInsets.only(left: 30),
|
||||||
child: Text(
|
value: boxFit,
|
||||||
"${PlPlayerController.videoFitType[boxFit.index]['desc']}",
|
child: Text(
|
||||||
style: const TextStyle(color: Colors.white, fontSize: 13),
|
"${PlPlayerController.videoFitType[boxFit.index]['desc']}",
|
||||||
),
|
style:
|
||||||
);
|
const TextStyle(color: Colors.white, fontSize: 13),
|
||||||
}).toList();
|
),
|
||||||
},
|
);
|
||||||
child: Text(
|
}).toList();
|
||||||
"${PlPlayerController.videoFitType[widget.controller.videoFit.value.index]['desc']}",
|
},
|
||||||
style: const TextStyle(color: Colors.white, fontSize: 13),
|
child: Text(
|
||||||
|
"${PlPlayerController.videoFitType[widget.controller.videoFit.value.index]['desc']}",
|
||||||
|
style: const TextStyle(color: Colors.white, fontSize: 13),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
const SizedBox(width: 10),
|
||||||
if (Platform.isAndroid) ...[
|
if (Platform.isAndroid) ...[
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 34,
|
width: 34,
|
||||||
|
|||||||
Reference in New Issue
Block a user