fix: 全屏状态异常

This commit is contained in:
guozhigq
2024-05-01 22:51:55 +08:00
parent 92dfef2387
commit 7ea2ce1575

View File

@ -544,6 +544,9 @@ class _VideoDetailPageState extends State<VideoDetailPage>
controller: _extendNestCtr, controller: _extendNestCtr,
headerSliverBuilder: headerSliverBuilder:
(BuildContext context2, bool innerBoxIsScrolled) { (BuildContext context2, bool innerBoxIsScrolled) {
return <Widget>[
Obx(
() {
final Orientation orientation = final Orientation orientation =
MediaQuery.of(context).orientation; MediaQuery.of(context).orientation;
final bool isFullScreen = final bool isFullScreen =
@ -555,9 +558,6 @@ class _VideoDetailPageState extends State<VideoDetailPage>
? 0 ? 0
: MediaQuery.of(context).padding.top)) : MediaQuery.of(context).padding.top))
: videoHeight.value; : videoHeight.value;
return <Widget>[
Obx(
() {
if (orientation == Orientation.landscape || if (orientation == Orientation.landscape ||
isFullScreen) { isFullScreen) {
enterFullScreen(); enterFullScreen();