fix: 全屏状态异常
This commit is contained in:
@ -535,20 +535,20 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
controller: _extendNestCtr,
|
controller: _extendNestCtr,
|
||||||
headerSliverBuilder:
|
headerSliverBuilder:
|
||||||
(BuildContext context2, bool innerBoxIsScrolled) {
|
(BuildContext context2, bool innerBoxIsScrolled) {
|
||||||
final Orientation orientation =
|
|
||||||
MediaQuery.of(context).orientation;
|
|
||||||
final bool isFullScreen =
|
|
||||||
plPlayerController?.isFullScreen.value == true;
|
|
||||||
final double expandedHeight =
|
|
||||||
orientation == Orientation.landscape || isFullScreen
|
|
||||||
? (MediaQuery.sizeOf(context).height -
|
|
||||||
(orientation == Orientation.landscape
|
|
||||||
? 0
|
|
||||||
: MediaQuery.of(context).padding.top))
|
|
||||||
: videoHeight.value;
|
|
||||||
return <Widget>[
|
return <Widget>[
|
||||||
Obx(
|
Obx(
|
||||||
() {
|
() {
|
||||||
|
final Orientation orientation =
|
||||||
|
MediaQuery.of(context).orientation;
|
||||||
|
final bool isFullScreen =
|
||||||
|
plPlayerController?.isFullScreen.value == true;
|
||||||
|
final double expandedHeight =
|
||||||
|
orientation == Orientation.landscape || isFullScreen
|
||||||
|
? (MediaQuery.sizeOf(context).height -
|
||||||
|
(orientation == Orientation.landscape
|
||||||
|
? 0
|
||||||
|
: MediaQuery.of(context).padding.top))
|
||||||
|
: videoHeight.value;
|
||||||
if (orientation == Orientation.landscape ||
|
if (orientation == Orientation.landscape ||
|
||||||
isFullScreen) {
|
isFullScreen) {
|
||||||
enterFullScreen();
|
enterFullScreen();
|
||||||
|
Reference in New Issue
Block a user