mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -301,9 +301,7 @@ class PlPlayerController {
|
||||
static Future<void> playIfExists(
|
||||
{bool repeat = false, bool hideControls = true}) async {
|
||||
// await _instance?.play(repeat: repeat, hideControls: hideControls);
|
||||
if (_playCallBack != null) {
|
||||
_playCallBack!();
|
||||
}
|
||||
_playCallBack?.call();
|
||||
}
|
||||
|
||||
// try to get PlayerStatus
|
||||
|
||||
@@ -371,18 +371,14 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
||||
.episodes!;
|
||||
// changeFucCall = bangumiIntroController!.changeSeasonOrbangu;
|
||||
}
|
||||
if (widget.showEpisodes != null) {
|
||||
widget.showEpisodes!(
|
||||
index,
|
||||
isPage
|
||||
? null
|
||||
: videoIntroController?.videoDetail.value.ugcSeason,
|
||||
episodes,
|
||||
bvid,
|
||||
IdUtils.bv2av(bvid),
|
||||
currentCid,
|
||||
);
|
||||
}
|
||||
widget.showEpisodes?.call(
|
||||
index,
|
||||
isPage ? null : videoIntroController?.videoDetail.value.ugcSeason,
|
||||
episodes,
|
||||
bvid,
|
||||
IdUtils.bv2av(bvid),
|
||||
currentCid,
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
class ComBtn extends StatelessWidget {
|
||||
final Widget? icon;
|
||||
final Function? fuc;
|
||||
final GestureTapCallback? fuc;
|
||||
|
||||
const ComBtn({
|
||||
this.icon,
|
||||
@@ -16,9 +16,7 @@ class ComBtn extends StatelessWidget {
|
||||
width: 34,
|
||||
height: 34,
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
fuc!();
|
||||
},
|
||||
onTap: fuc,
|
||||
child: icon!,
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user