fix: 竖屏视频无法全屏
This commit is contained in:
@ -259,16 +259,15 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
headerSliverBuilder:
|
headerSliverBuilder:
|
||||||
(BuildContext context, bool innerBoxIsScrolled) {
|
(BuildContext context, bool innerBoxIsScrolled) {
|
||||||
return <Widget>[
|
return <Widget>[
|
||||||
SliverAppBar(
|
Obx(() => SliverAppBar(
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: false,
|
||||||
pinned: false,
|
pinned: false,
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
scrolledUnderElevation: 0,
|
scrolledUnderElevation: 0,
|
||||||
forceElevated: innerBoxIsScrolled,
|
forceElevated: innerBoxIsScrolled,
|
||||||
expandedHeight:
|
expandedHeight: MediaQuery.of(context).orientation ==
|
||||||
plPlayerController?.isFullScreen.value == true ||
|
Orientation.landscape ||
|
||||||
MediaQuery.of(context).orientation ==
|
plPlayerController?.isFullScreen.value == true
|
||||||
Orientation.landscape
|
|
||||||
? MediaQuery.of(context).size.height -
|
? MediaQuery.of(context).size.height -
|
||||||
(MediaQuery.of(context).orientation ==
|
(MediaQuery.of(context).orientation ==
|
||||||
Orientation.landscape
|
Orientation.landscape
|
||||||
@ -422,7 +421,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
)),
|
)),
|
||||||
)),
|
))),
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
// pinnedHeaderSliverHeightBuilder: () {
|
// pinnedHeaderSliverHeightBuilder: () {
|
||||||
|
Reference in New Issue
Block a user