mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: video page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user