From 3039503726751241fc1075e27585ae41a5df4650 Mon Sep 17 00:00:00 2001 From: orz12 Date: Fri, 29 Dec 2023 20:02:52 +0800 Subject: [PATCH] fix --- lib/pages/video/detail/view.dart | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/pages/video/detail/view.dart b/lib/pages/video/detail/view.dart index de35ddaf..b3c7e2a0 100644 --- a/lib/pages/video/detail/view.dart +++ b/lib/pages/video/detail/view.dart @@ -243,7 +243,8 @@ class _VideoDetailPageState extends State exitFullScreen(); } Widget childWhenDisabled = SafeArea( - top: MediaQuery.of(context).orientation == Orientation.portrait, + top: MediaQuery.of(context).orientation == Orientation.portrait && + plPlayerController?.isFullScreen.value == true, bottom: MediaQuery.of(context).orientation == Orientation.portrait && plPlayerController?.isFullScreen.value == true, left: plPlayerController?.isFullScreen.value != true, @@ -254,10 +255,17 @@ class _VideoDetailPageState extends State resizeToAvoidBottomInset: false, key: videoDetailController.scaffoldKey, backgroundColor: Colors.black, + appBar: PreferredSize( + preferredSize: const Size.fromHeight(0), + child: AppBar( + backgroundColor: Theme.of(context).colorScheme.background, + elevation: 0, + ), + ), body: ExtendedNestedScrollView( controller: _extendNestCtr, headerSliverBuilder: - (BuildContext context, bool innerBoxIsScrolled) { + (BuildContext _context, bool innerBoxIsScrolled) { return [ Obx(() => SliverAppBar( automaticallyImplyLeading: false, @@ -272,7 +280,7 @@ class _VideoDetailPageState extends State (MediaQuery.of(context).orientation == Orientation.landscape ? 0 - : statusBarHeight) + : MediaQuery.of(context).padding.top) : videoHeight, backgroundColor: Colors.black, flexibleSpace: FlexibleSpaceBar(