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,38 +914,34 @@ 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,
|
left: !removeSafeArea && !isFullScreen,
|
||||||
child: SafeArea(
|
right: !removeSafeArea && !isFullScreen,
|
||||||
left: !removeSafeArea && !isFullScreen,
|
top: !removeSafeArea,
|
||||||
right: !removeSafeArea && !isFullScreen,
|
bottom: false, //!removeSafeArea,
|
||||||
top: !removeSafeArea,
|
child: childWhenDisabledLandscapeInner,
|
||||||
bottom: false, //!removeSafeArea,
|
|
||||||
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
|
? null
|
||||||
? null
|
: AppBar(
|
||||||
: AppBar(
|
backgroundColor: Colors.black,
|
||||||
backgroundColor: Colors.black,
|
toolbarHeight: 0,
|
||||||
toolbarHeight: 0,
|
),
|
||||||
),
|
body: SafeArea(
|
||||||
body: Container(
|
left: !removeSafeArea && !isFullScreen,
|
||||||
color: Theme.of(context).colorScheme.surface,
|
right: !removeSafeArea && !isFullScreen,
|
||||||
child: SafeArea(
|
top: !removeSafeArea,
|
||||||
left: !removeSafeArea && !isFullScreen,
|
bottom: false, //!removeSafeArea,
|
||||||
right: !removeSafeArea && !isFullScreen,
|
child: childWhenDisabledAlmostSquareInner,
|
||||||
top: !removeSafeArea,
|
),
|
||||||
bottom: false, //!removeSafeArea,
|
);
|
||||||
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,
|
||||||
|
|||||||
@@ -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,38 +1302,34 @@ 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,
|
left: !removeSafeArea && !isFullScreen,
|
||||||
child: SafeArea(
|
right: !removeSafeArea && !isFullScreen,
|
||||||
left: !removeSafeArea && !isFullScreen,
|
top: !removeSafeArea,
|
||||||
right: !removeSafeArea && !isFullScreen,
|
bottom: false, //!removeSafeArea,
|
||||||
top: !removeSafeArea,
|
child: childWhenDisabledLandscapeInner,
|
||||||
bottom: false, //!removeSafeArea,
|
|
||||||
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
|
? null
|
||||||
? null
|
: AppBar(
|
||||||
: AppBar(
|
backgroundColor: Colors.black,
|
||||||
backgroundColor: Colors.black,
|
toolbarHeight: 0,
|
||||||
toolbarHeight: 0,
|
),
|
||||||
),
|
body: SafeArea(
|
||||||
body: Container(
|
left: !removeSafeArea && !isFullScreen,
|
||||||
color: Theme.of(context).colorScheme.surface,
|
right: !removeSafeArea && !isFullScreen,
|
||||||
child: SafeArea(
|
top: !removeSafeArea,
|
||||||
left: !removeSafeArea && !isFullScreen,
|
bottom: false, //!removeSafeArea,
|
||||||
right: !removeSafeArea && !isFullScreen,
|
child: childWhenDisabledAlmostSquareInner,
|
||||||
top: !removeSafeArea,
|
),
|
||||||
bottom: false, //!removeSafeArea,
|
);
|
||||||
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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user