Skip to content

Commit

Permalink
fix phone device fullscreen bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ErBWs committed Jan 8, 2025
1 parent 6c2ca44 commit 7214a08
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions lib/pages/video/video_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class _VideoPageState extends State<VideoPage>
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
child: playerBody),
if (videoPageController.showTabBody)
if (videoPageController.showTabBody) ...[
GestureDetector(
onTap: () {
closeTabBodyAnimated();
Expand All @@ -328,27 +328,28 @@ class _VideoPageState extends State<VideoPage>
height: double.infinity,
),
),
SlideTransition(
position: _rightOffsetAnimation,
child: SizedBox(
height: MediaQuery.of(context).size.height,
width: (Utils.isTablet())
? MediaQuery.of(context).size.width / 2
: MediaQuery.of(context).size.height,
child: Container(
color: Theme.of(context).canvasColor,
child: GridViewObserver(
controller: observerController,
child: Column(
children: [
menuBar,
menuBody,
],
SlideTransition(
position: _rightOffsetAnimation,
child: SizedBox(
height: MediaQuery.of(context).size.height,
width: (Utils.isTablet())
? MediaQuery.of(context).size.width / 2
: MediaQuery.of(context).size.height,
child: Container(
color: Theme.of(context).canvasColor,
child: GridViewObserver(
controller: observerController,
child: Column(
children: [
menuBar,
menuBody,
],
),
),
),
),
),
),
],
],
),
),
Expand Down

0 comments on commit 7214a08

Please sign in to comment.