mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -83,7 +83,6 @@ class _BottomControlState extends State<BottomControl> {
|
|||||||
margin: const EdgeInsets.symmetric(horizontal: 10),
|
margin: const EdgeInsets.symmetric(horizontal: 10),
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: PopupMenuButton<BoxFit>(
|
child: PopupMenuButton<BoxFit>(
|
||||||
onSelected: widget.controller.toggleVideoFit,
|
|
||||||
initialValue: widget.controller.videoFit.value,
|
initialValue: widget.controller.videoFit.value,
|
||||||
color: Colors.black.withOpacity(0.8),
|
color: Colors.black.withOpacity(0.8),
|
||||||
itemBuilder: (BuildContext context) {
|
itemBuilder: (BuildContext context) {
|
||||||
@@ -92,6 +91,9 @@ class _BottomControlState extends State<BottomControl> {
|
|||||||
height: 35,
|
height: 35,
|
||||||
padding: const EdgeInsets.only(left: 30),
|
padding: const EdgeInsets.only(left: 30),
|
||||||
value: boxFit,
|
value: boxFit,
|
||||||
|
onTap: () {
|
||||||
|
widget.controller.toggleVideoFit(boxFit);
|
||||||
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
"${PlPlayerController.videoFitType[boxFit.index]['desc']}",
|
"${PlPlayerController.videoFitType[boxFit.index]['desc']}",
|
||||||
style:
|
style:
|
||||||
@@ -142,9 +144,6 @@ class _BottomControlState extends State<BottomControl> {
|
|||||||
child: PopupMenuButton<int>(
|
child: PopupMenuButton<int>(
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
initialValue: widget.liveRoomCtr.currentQn,
|
initialValue: widget.liveRoomCtr.currentQn,
|
||||||
onSelected: (value) {
|
|
||||||
widget.liveRoomCtr.changeQn(value);
|
|
||||||
},
|
|
||||||
child: Text(
|
child: Text(
|
||||||
widget.liveRoomCtr.currentQnDesc.value,
|
widget.liveRoomCtr.currentQnDesc.value,
|
||||||
style: const TextStyle(color: Colors.white, fontSize: 13),
|
style: const TextStyle(color: Colors.white, fontSize: 13),
|
||||||
@@ -153,6 +152,9 @@ class _BottomControlState extends State<BottomControl> {
|
|||||||
return widget.liveRoomCtr.acceptQnList.map((e) {
|
return widget.liveRoomCtr.acceptQnList.map((e) {
|
||||||
return PopupMenuItem<int>(
|
return PopupMenuItem<int>(
|
||||||
value: e['code'],
|
value: e['code'],
|
||||||
|
onTap: () {
|
||||||
|
widget.liveRoomCtr.changeQn(e['code']);
|
||||||
|
},
|
||||||
child: Text(e['desc']),
|
child: Text(e['desc']),
|
||||||
);
|
);
|
||||||
}).toList();
|
}).toList();
|
||||||
|
|||||||
@@ -401,9 +401,6 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
margin: const EdgeInsets.symmetric(horizontal: 10),
|
margin: const EdgeInsets.symmetric(horizontal: 10),
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: PopupMenuButton<SuperResolutionType>(
|
child: PopupMenuButton<SuperResolutionType>(
|
||||||
onSelected: (SuperResolutionType value) {
|
|
||||||
plPlayerController.setShader(value.index);
|
|
||||||
},
|
|
||||||
initialValue: SuperResolutionType
|
initialValue: SuperResolutionType
|
||||||
.values[plPlayerController.superResolutionType],
|
.values[plPlayerController.superResolutionType],
|
||||||
color: Colors.black.withOpacity(0.8),
|
color: Colors.black.withOpacity(0.8),
|
||||||
@@ -414,6 +411,9 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
height: 35,
|
height: 35,
|
||||||
padding: const EdgeInsets.only(left: 30),
|
padding: const EdgeInsets.only(left: 30),
|
||||||
value: type,
|
value: type,
|
||||||
|
onTap: () {
|
||||||
|
plPlayerController.setShader(type.index);
|
||||||
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
type.title,
|
type.title,
|
||||||
style:
|
style:
|
||||||
@@ -515,9 +515,6 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
margin: const EdgeInsets.symmetric(horizontal: 10),
|
margin: const EdgeInsets.symmetric(horizontal: 10),
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: PopupMenuButton<BoxFit>(
|
child: PopupMenuButton<BoxFit>(
|
||||||
onSelected: (BoxFit value) {
|
|
||||||
plPlayerController.toggleVideoFit(value);
|
|
||||||
},
|
|
||||||
initialValue: plPlayerController.videoFit.value,
|
initialValue: plPlayerController.videoFit.value,
|
||||||
color: Colors.black.withOpacity(0.8),
|
color: Colors.black.withOpacity(0.8),
|
||||||
itemBuilder: (BuildContext context) {
|
itemBuilder: (BuildContext context) {
|
||||||
@@ -526,6 +523,9 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
height: 35,
|
height: 35,
|
||||||
padding: const EdgeInsets.only(left: 30),
|
padding: const EdgeInsets.only(left: 30),
|
||||||
value: boxFit,
|
value: boxFit,
|
||||||
|
onTap: () {
|
||||||
|
plPlayerController.toggleVideoFit(boxFit);
|
||||||
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
"${PlPlayerController.videoFitType[boxFit.index]['desc']}",
|
"${PlPlayerController.videoFitType[boxFit.index]['desc']}",
|
||||||
style: const TextStyle(color: Colors.white, fontSize: 13),
|
style: const TextStyle(color: Colors.white, fontSize: 13),
|
||||||
@@ -548,9 +548,6 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
width: widgetWidth,
|
width: widgetWidth,
|
||||||
height: 30,
|
height: 30,
|
||||||
child: PopupMenuButton<int>(
|
child: PopupMenuButton<int>(
|
||||||
onSelected: (int value) {
|
|
||||||
plPlayerController.setSubtitle(value);
|
|
||||||
},
|
|
||||||
initialValue: plPlayerController.vttSubtitles.length <
|
initialValue: plPlayerController.vttSubtitles.length <
|
||||||
plPlayerController.vttSubtitlesIndex.value
|
plPlayerController.vttSubtitlesIndex.value
|
||||||
? 0
|
? 0
|
||||||
@@ -563,6 +560,9 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
.map((entry) {
|
.map((entry) {
|
||||||
return PopupMenuItem<int>(
|
return PopupMenuItem<int>(
|
||||||
value: entry.key,
|
value: entry.key,
|
||||||
|
onTap: () {
|
||||||
|
plPlayerController.setSubtitle(entry.key);
|
||||||
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
"${entry.value['title']}",
|
"${entry.value['title']}",
|
||||||
style: const TextStyle(color: Colors.white),
|
style: const TextStyle(color: Colors.white),
|
||||||
@@ -593,9 +593,6 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
margin: const EdgeInsets.symmetric(horizontal: 10),
|
margin: const EdgeInsets.symmetric(horizontal: 10),
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: PopupMenuButton<double>(
|
child: PopupMenuButton<double>(
|
||||||
onSelected: (double value) {
|
|
||||||
plPlayerController.setPlaybackSpeed(value);
|
|
||||||
},
|
|
||||||
initialValue: plPlayerController.playbackSpeed,
|
initialValue: plPlayerController.playbackSpeed,
|
||||||
color: Colors.black.withOpacity(0.8),
|
color: Colors.black.withOpacity(0.8),
|
||||||
itemBuilder: (BuildContext context) {
|
itemBuilder: (BuildContext context) {
|
||||||
@@ -604,6 +601,9 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
height: 35,
|
height: 35,
|
||||||
padding: const EdgeInsets.only(left: 30),
|
padding: const EdgeInsets.only(left: 30),
|
||||||
value: speed,
|
value: speed,
|
||||||
|
onTap: () {
|
||||||
|
plPlayerController.setPlaybackSpeed(speed);
|
||||||
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
"${speed}X",
|
"${speed}X",
|
||||||
style: const TextStyle(color: Colors.white, fontSize: 13),
|
style: const TextStyle(color: Colors.white, fontSize: 13),
|
||||||
|
|||||||
Reference in New Issue
Block a user