opt: video page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-10 21:40:59 +08:00
parent 68b072bf44
commit fafe6c1e91
3 changed files with 54 additions and 54 deletions

View File

@@ -914,21 +914,18 @@ class _VideoDetailPageState extends State<VideoDetailPage>
backgroundColor: Colors.black, backgroundColor: Colors.black,
toolbarHeight: 0, toolbarHeight: 0,
), ),
body: Container( body: SafeArea(
color: Theme.of(context).colorScheme.surface,
child: SafeArea(
left: !removeSafeArea && !isFullScreen, left: !removeSafeArea && !isFullScreen,
right: !removeSafeArea && !isFullScreen, right: !removeSafeArea && !isFullScreen,
top: !removeSafeArea, top: !removeSafeArea,
bottom: false, //!removeSafeArea, bottom: false, //!removeSafeArea,
child: childWhenDisabledLandscapeInner), child: childWhenDisabledLandscapeInner,
), ),
), ),
], ],
); );
Widget get childWhenDisabledAlmostSquare => Stack(children: [ Widget get childWhenDisabledAlmostSquare => Scaffold(
Scaffold(
resizeToAvoidBottomInset: false, resizeToAvoidBottomInset: false,
key: videoDetailController.scaffoldKey, key: videoDetailController.scaffoldKey,
appBar: removeSafeArea appBar: removeSafeArea
@@ -937,15 +934,14 @@ class _VideoDetailPageState extends State<VideoDetailPage>
backgroundColor: Colors.black, backgroundColor: Colors.black,
toolbarHeight: 0, toolbarHeight: 0,
), ),
body: Container( body: SafeArea(
color: Theme.of(context).colorScheme.surface,
child: SafeArea(
left: !removeSafeArea && !isFullScreen, left: !removeSafeArea && !isFullScreen,
right: !removeSafeArea && !isFullScreen, right: !removeSafeArea && !isFullScreen,
top: !removeSafeArea, top: !removeSafeArea,
bottom: false, //!removeSafeArea, bottom: false, //!removeSafeArea,
child: childWhenDisabledAlmostSquareInner))) child: childWhenDisabledAlmostSquareInner,
]); ),
);
Widget get childWhenEnabled => Obx( Widget get childWhenEnabled => Obx(
() => !videoDetailController.autoPlay.value () => !videoDetailController.autoPlay.value
@@ -992,6 +988,8 @@ class _VideoDetailPageState extends State<VideoDetailPage>
left: 0, left: 0,
right: 0, right: 0,
child: AppBar( child: AppBar(
elevation: 0,
scrolledUnderElevation: 0,
primary: false, primary: false,
foregroundColor: Colors.white, foregroundColor: Colors.white,
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,

View File

@@ -719,6 +719,8 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
(BuildContext context, bool innerBoxIsScrolled) { (BuildContext context, bool innerBoxIsScrolled) {
return [ return [
SliverAppBar( SliverAppBar(
elevation: 0,
scrolledUnderElevation: 0,
primary: false, primary: false,
automaticallyImplyLeading: false, automaticallyImplyLeading: false,
pinned: true, pinned: true,
@@ -1300,21 +1302,18 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
backgroundColor: Colors.black, backgroundColor: Colors.black,
toolbarHeight: 0, toolbarHeight: 0,
), ),
body: Container( body: SafeArea(
color: Theme.of(context).colorScheme.surface,
child: SafeArea(
left: !removeSafeArea && !isFullScreen, left: !removeSafeArea && !isFullScreen,
right: !removeSafeArea && !isFullScreen, right: !removeSafeArea && !isFullScreen,
top: !removeSafeArea, top: !removeSafeArea,
bottom: false, //!removeSafeArea, bottom: false, //!removeSafeArea,
child: childWhenDisabledLandscapeInner), child: childWhenDisabledLandscapeInner,
), ),
), ),
], ],
); );
Widget get childWhenDisabledAlmostSquare => Stack(children: [ Widget get childWhenDisabledAlmostSquare => Scaffold(
Scaffold(
resizeToAvoidBottomInset: false, resizeToAvoidBottomInset: false,
key: videoDetailController.scaffoldKey, key: videoDetailController.scaffoldKey,
appBar: removeSafeArea appBar: removeSafeArea
@@ -1323,15 +1322,14 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
backgroundColor: Colors.black, backgroundColor: Colors.black,
toolbarHeight: 0, toolbarHeight: 0,
), ),
body: Container( body: SafeArea(
color: Theme.of(context).colorScheme.surface,
child: SafeArea(
left: !removeSafeArea && !isFullScreen, left: !removeSafeArea && !isFullScreen,
right: !removeSafeArea && !isFullScreen, right: !removeSafeArea && !isFullScreen,
top: !removeSafeArea, top: !removeSafeArea,
bottom: false, //!removeSafeArea, bottom: false, //!removeSafeArea,
child: childWhenDisabledAlmostSquareInner))) child: childWhenDisabledAlmostSquareInner,
]); ),
);
Widget get childWhenEnabled => Obx( Widget get childWhenEnabled => Obx(
() => !videoDetailController.autoPlay.value () => !videoDetailController.autoPlay.value
@@ -1379,6 +1377,8 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
right: 0, right: 0,
child: AppBar( child: AppBar(
primary: false, primary: false,
elevation: 0,
scrolledUnderElevation: 0,
foregroundColor: Colors.white, foregroundColor: Colors.white,
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
automaticallyImplyLeading: false, automaticallyImplyLeading: false,

View File

@@ -1745,6 +1745,8 @@ class _HeaderControlState extends State<HeaderControl> {
} }
Widget _buildHeader(bool showFSActionItem) => AppBar( Widget _buildHeader(bool showFSActionItem) => AppBar(
elevation: 0,
scrolledUnderElevation: 0,
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
foregroundColor: Colors.white, foregroundColor: Colors.white,
primary: false, primary: false,