opt: pages

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-28 21:54:53 +08:00
parent 139b48c457
commit 312ce6e639
4 changed files with 79 additions and 78 deletions

View File

@@ -406,6 +406,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
flex: _ratio[1].toInt(),
child: Scaffold(
key: _key,
backgroundColor: Colors.transparent,
body: refreshIndicator(
onRefresh: () async {
await _dynamicDetailController.onRefresh();

View File

@@ -399,6 +399,7 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
flex: _ratio[1].toInt(),
child: Scaffold(
key: _key,
backgroundColor: Colors.transparent,
body: CustomScrollView(
controller: _htmlRenderCtr.scrollController,
slivers: [

View File

@@ -618,6 +618,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
child: Scaffold(
key: videoDetailController.childKey,
resizeToAvoidBottomInset: false,
backgroundColor: Colors.transparent,
body: Column(
children: [
buildTabbar(
@@ -670,6 +671,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
child: Scaffold(
key: videoDetailController.childKey,
resizeToAvoidBottomInset: false,
backgroundColor: Colors.transparent,
body: Column(
children: [
buildTabbar(showReply: videoDetailController.showReply),
@@ -714,6 +716,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
child: Scaffold(
key: videoDetailController.childKey,
resizeToAvoidBottomInset: false,
backgroundColor: Colors.transparent,
body: Column(
children: [
buildTabbar(
@@ -766,6 +769,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
child: Scaffold(
key: videoDetailController.childKey,
resizeToAvoidBottomInset: false,
backgroundColor: Colors.transparent,
body: Column(
children: [
buildTabbar(
@@ -872,6 +876,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
child: Scaffold(
key: videoDetailController.childKey,
resizeToAvoidBottomInset: false,
backgroundColor: Colors.transparent,
body: Column(
children: [
buildTabbar(
@@ -888,9 +893,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
if (videoDetailController.videoType ==
SearchType.video &&
videoDetailController.showRelatedVideo)
Material(
color: Colors.transparent,
child: CustomScrollView(
CustomScrollView(
controller: _introController,
slivers: [
RelatedVideoPanel(
@@ -898,7 +901,6 @@ class _VideoDetailPageState extends State<VideoDetailPage>
heroTag: heroTag),
],
),
),
if (videoDetailController.showReply)
videoReplyPanel,
if (_shouldShowSeasonPanel) seasonPanel,
@@ -1505,9 +1507,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
);
Widget videoIntro([bool needRelated = true]) {
Widget introPanel() => Material(
color: Colors.transparent,
child: CustomScrollView(
Widget introPanel() => CustomScrollView(
key: const PageStorageKey<String>('简介'),
controller: needRelated ? _introController : null,
slivers: [
@@ -1522,8 +1522,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
if (needRelated && videoDetailController.showRelatedVideo) ...[
SliverToBoxAdapter(
child: Padding(
padding:
const EdgeInsets.only(top: StyleString.safeSpace),
padding: const EdgeInsets.only(top: StyleString.safeSpace),
child: Divider(
height: 1,
indent: 12,
@@ -1535,8 +1534,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
),
),
),
RelatedVideoPanel(
key: relatedVideoPanelKey, heroTag: heroTag),
RelatedVideoPanel(key: relatedVideoPanelKey, heroTag: heroTag),
] else
SliverToBoxAdapter(
child: SizedBox(
@@ -1565,7 +1563,6 @@ class _VideoDetailPageState extends State<VideoDetailPage>
),
)
],
),
);
if (videoDetailController.isPlayAll) {
return Stack(

View File

@@ -908,6 +908,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
body: Scaffold(
key: videoDetailController.childKey,
resizeToAvoidBottomInset: false,
backgroundColor: Colors.transparent,
body: Column(
children: [
buildTabbar(
@@ -961,6 +962,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
child: Scaffold(
key: videoDetailController.childKey,
resizeToAvoidBottomInset: false,
backgroundColor: Colors.transparent,
body: Column(
children: [
buildTabbar(showReply: videoDetailController.showReply),
@@ -1005,6 +1007,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
child: Scaffold(
key: videoDetailController.childKey,
resizeToAvoidBottomInset: false,
backgroundColor: Colors.transparent,
body: Column(
children: [
buildTabbar(
@@ -1057,6 +1060,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
child: Scaffold(
key: videoDetailController.childKey,
resizeToAvoidBottomInset: false,
backgroundColor: Colors.transparent,
body: Column(
children: [
buildTabbar(
@@ -1163,6 +1167,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
child: Scaffold(
key: videoDetailController.childKey,
resizeToAvoidBottomInset: false,
backgroundColor: Colors.transparent,
body: Column(
children: [
buildTabbar(
@@ -1179,9 +1184,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
if (videoDetailController.videoType ==
SearchType.video &&
videoDetailController.showRelatedVideo)
Material(
color: Colors.transparent,
child: CustomScrollView(
CustomScrollView(
controller: _introController,
slivers: [
RelatedVideoPanel(
@@ -1189,7 +1192,6 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
heroTag: heroTag),
],
),
),
if (videoDetailController.showReply)
videoReplyPanel(),
if (_shouldShowSeasonPanel) seasonPanel,