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

View File

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

View File

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