mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
opt: video bg
Closes #397 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -543,21 +543,11 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
Scaffold(
|
Scaffold(
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
key: videoDetailController.scaffoldKey,
|
key: videoDetailController.scaffoldKey,
|
||||||
// backgroundColor: Colors.black,
|
|
||||||
appBar: removeSafeArea
|
appBar: removeSafeArea
|
||||||
? null
|
? null
|
||||||
: AppBar(
|
: AppBar(
|
||||||
backgroundColor: Colors.black,
|
backgroundColor: Colors.black,
|
||||||
// showStatusBarBackgroundColor ? null : Colors.black,
|
|
||||||
toolbarHeight: 0,
|
toolbarHeight: 0,
|
||||||
// systemOverlayStyle: SystemUiOverlayStyle(
|
|
||||||
// statusBarIconBrightness:
|
|
||||||
// Theme.of(context).brightness == Brightness.dark ||
|
|
||||||
// !showStatusBarBackgroundColor
|
|
||||||
// ? Brightness.light
|
|
||||||
// : Brightness.dark,
|
|
||||||
// systemNavigationBarColor: Colors.transparent,
|
|
||||||
// ),
|
|
||||||
),
|
),
|
||||||
body: Column(
|
body: Column(
|
||||||
children: [
|
children: [
|
||||||
@@ -588,9 +578,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
showStatusBar();
|
showStatusBar();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Container(
|
return SizedBox(
|
||||||
color: Colors.black,
|
|
||||||
// showStatusBarBackgroundColor ? null : Colors.black,
|
|
||||||
height: MediaQuery.of(context).orientation ==
|
height: MediaQuery.of(context).orientation ==
|
||||||
Orientation.landscape ||
|
Orientation.landscape ||
|
||||||
isFullScreen
|
isFullScreen
|
||||||
@@ -921,21 +909,11 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
Scaffold(
|
Scaffold(
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
key: videoDetailController.scaffoldKey,
|
key: videoDetailController.scaffoldKey,
|
||||||
// backgroundColor: Colors.black,
|
|
||||||
appBar: removeSafeArea
|
appBar: removeSafeArea
|
||||||
? null
|
? null
|
||||||
: AppBar(
|
: AppBar(
|
||||||
backgroundColor: Colors.black,
|
backgroundColor: Colors.black,
|
||||||
// showStatusBarBackgroundColor ? null : Colors.black,
|
|
||||||
toolbarHeight: 0,
|
toolbarHeight: 0,
|
||||||
// systemOverlayStyle: SystemUiOverlayStyle(
|
|
||||||
// statusBarIconBrightness:
|
|
||||||
// Theme.of(context).brightness == Brightness.dark ||
|
|
||||||
// !showStatusBarBackgroundColor
|
|
||||||
// ? Brightness.light
|
|
||||||
// : Brightness.dark,
|
|
||||||
// systemNavigationBarColor: Colors.transparent,
|
|
||||||
// ),
|
|
||||||
),
|
),
|
||||||
body: Container(
|
body: Container(
|
||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
@@ -954,21 +932,11 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
Scaffold(
|
Scaffold(
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
key: videoDetailController.scaffoldKey,
|
key: videoDetailController.scaffoldKey,
|
||||||
// backgroundColor: Colors.black,
|
|
||||||
appBar: removeSafeArea
|
appBar: removeSafeArea
|
||||||
? null
|
? null
|
||||||
: AppBar(
|
: AppBar(
|
||||||
backgroundColor: Colors.black,
|
backgroundColor: Colors.black,
|
||||||
// showStatusBarBackgroundColor ? null : Colors.black,
|
|
||||||
toolbarHeight: 0,
|
toolbarHeight: 0,
|
||||||
// systemOverlayStyle: SystemUiOverlayStyle(
|
|
||||||
// statusBarIconBrightness:
|
|
||||||
// Theme.of(context).brightness == Brightness.dark ||
|
|
||||||
// !showStatusBarBackgroundColor
|
|
||||||
// ? Brightness.light
|
|
||||||
// : Brightness.dark,
|
|
||||||
// systemNavigationBarColor: Colors.transparent,
|
|
||||||
// ),
|
|
||||||
),
|
),
|
||||||
body: Container(
|
body: Container(
|
||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
@@ -1394,6 +1362,8 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
|
|
||||||
Widget videoPlayer(double videoWidth, double videoHeight) => Stack(
|
Widget videoPlayer(double videoWidth, double videoHeight) => Stack(
|
||||||
children: [
|
children: [
|
||||||
|
Positioned.fill(child: ColoredBox(color: Colors.black)),
|
||||||
|
|
||||||
if (isShowing) plPlayer,
|
if (isShowing) plPlayer,
|
||||||
|
|
||||||
/// 关闭自动播放时 手动播放
|
/// 关闭自动播放时 手动播放
|
||||||
|
|||||||
@@ -631,7 +631,6 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
|||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
key: videoDetailController.scaffoldKey,
|
key: videoDetailController.scaffoldKey,
|
||||||
// backgroundColor: Colors.black,
|
|
||||||
appBar: removeSafeArea
|
appBar: removeSafeArea
|
||||||
? null
|
? null
|
||||||
: PreferredSize(
|
: PreferredSize(
|
||||||
@@ -754,9 +753,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
|||||||
showStatusBar();
|
showStatusBar();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Container(
|
return SizedBox(
|
||||||
color: Colors.black,
|
|
||||||
// showStatusBarBackgroundColor ? null : Colors.black,
|
|
||||||
height: MediaQuery.of(context).orientation ==
|
height: MediaQuery.of(context).orientation ==
|
||||||
Orientation.landscape ||
|
Orientation.landscape ||
|
||||||
isFullScreen
|
isFullScreen
|
||||||
@@ -1302,21 +1299,11 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
|||||||
Scaffold(
|
Scaffold(
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
key: videoDetailController.scaffoldKey,
|
key: videoDetailController.scaffoldKey,
|
||||||
// backgroundColor: Colors.black,
|
|
||||||
appBar: removeSafeArea
|
appBar: removeSafeArea
|
||||||
? null
|
? null
|
||||||
: AppBar(
|
: AppBar(
|
||||||
backgroundColor: Colors.black,
|
backgroundColor: Colors.black,
|
||||||
// showStatusBarBackgroundColor ? null : Colors.black,
|
|
||||||
toolbarHeight: 0,
|
toolbarHeight: 0,
|
||||||
// systemOverlayStyle: SystemUiOverlayStyle(
|
|
||||||
// statusBarIconBrightness:
|
|
||||||
// Theme.of(context).brightness == Brightness.dark ||
|
|
||||||
// !showStatusBarBackgroundColor
|
|
||||||
// ? Brightness.light
|
|
||||||
// : Brightness.dark,
|
|
||||||
// systemNavigationBarColor: Colors.transparent,
|
|
||||||
// ),
|
|
||||||
),
|
),
|
||||||
body: Container(
|
body: Container(
|
||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
@@ -1335,21 +1322,11 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
|||||||
Scaffold(
|
Scaffold(
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
key: videoDetailController.scaffoldKey,
|
key: videoDetailController.scaffoldKey,
|
||||||
// backgroundColor: Colors.black,
|
|
||||||
appBar: removeSafeArea
|
appBar: removeSafeArea
|
||||||
? null
|
? null
|
||||||
: AppBar(
|
: AppBar(
|
||||||
backgroundColor: Colors.black,
|
backgroundColor: Colors.black,
|
||||||
// showStatusBarBackgroundColor ? null : Colors.black,
|
|
||||||
toolbarHeight: 0,
|
toolbarHeight: 0,
|
||||||
// systemOverlayStyle: SystemUiOverlayStyle(
|
|
||||||
// statusBarIconBrightness:
|
|
||||||
// Theme.of(context).brightness == Brightness.dark ||
|
|
||||||
// !showStatusBarBackgroundColor
|
|
||||||
// ? Brightness.light
|
|
||||||
// : Brightness.dark,
|
|
||||||
// systemNavigationBarColor: Colors.transparent,
|
|
||||||
// ),
|
|
||||||
),
|
),
|
||||||
body: Container(
|
body: Container(
|
||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
@@ -1781,6 +1758,8 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
|||||||
Widget videoPlayer(double videoWidth, double videoHeight) {
|
Widget videoPlayer(double videoWidth, double videoHeight) {
|
||||||
return Stack(
|
return Stack(
|
||||||
children: [
|
children: [
|
||||||
|
Positioned.fill(child: ColoredBox(color: Colors.black)),
|
||||||
|
|
||||||
if (isShowing) plPlayer,
|
if (isShowing) plPlayer,
|
||||||
|
|
||||||
if (!videoDetailController.autoPlay.value) ...[
|
if (!videoDetailController.autoPlay.value) ...[
|
||||||
|
|||||||
Reference in New Issue
Block a user