Skip to content

Commit

Permalink
fix: video page v
Browse files Browse the repository at this point in the history
Signed-off-by: bggRGjQaUbCoE <[email protected]>
  • Loading branch information
bggRGjQaUbCoE committed Feb 27, 2025
1 parent b330440 commit 87d3d0c
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions lib/pages/video/detail/view_v.dart
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,8 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
controller: videoDetailController.scrollCtr,
onlyOneScrollInBody: true,
pinnedHeaderSliverHeightBuilder: () {
double height = isFullScreen
double height = isFullScreen ||
context.orientation == Orientation.landscape
? MediaQuery.sizeOf(context).height
: videoDetailController.isExpanding ||
videoDetailController.isCollapsing
Expand Down Expand Up @@ -698,7 +699,8 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
SliverAppBar(
automaticallyImplyLeading: false,
pinned: true,
expandedHeight: isFullScreen
expandedHeight: isFullScreen ||
context.orientation == Orientation.landscape
? MediaQuery.sizeOf(context).height
: videoDetailController.isExpanding ||
videoDetailController.isCollapsing
Expand Down Expand Up @@ -752,10 +754,13 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
onPopInvokedWithResult: _onPopInvokedWithResult,
child: videoPlayer(
videoWidth,
videoDetailController.isExpanding ||
videoDetailController.isCollapsing
? animHeight
: videoDetailController.videoHeight,
context.orientation == Orientation.landscape ||
isFullScreen
? context.height
: videoDetailController.isExpanding ||
videoDetailController.isCollapsing
? animHeight
: videoDetailController.videoHeight,
),
),
);
Expand Down

0 comments on commit 87d3d0c

Please sign in to comment.