Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-29 20:13:11 +08:00
parent 924d51d41b
commit 8aeb035e55
13 changed files with 220 additions and 244 deletions

View File

@@ -179,7 +179,6 @@ class _ArticlePageState extends State<ArticlePage>
VoidCallback? onDispose, VoidCallback? onDispose,
}) => }) =>
Scaffold( Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar( appBar: AppBar(
title: const Text('评论详情'), title: const Text('评论详情'),
titleSpacing: automaticallyImplyLeading ? null : 12, titleSpacing: automaticallyImplyLeading ? null : 12,

View File

@@ -130,7 +130,6 @@ class _DynamicsPageState extends State<DynamicsPage>
super.build(context); super.build(context);
ThemeData theme = Theme.of(context); ThemeData theme = Theme.of(context);
return Scaffold( return Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar( appBar: AppBar(
leading: upPanelPosition == UpPanelPosition.rightDrawer leading: upPanelPosition == UpPanelPosition.rightDrawer
? _createDynamicBtn(theme, false) ? _createDynamicBtn(theme, false)

View File

@@ -57,13 +57,10 @@ class _CreateDynPanelState extends CommonPublishPageState<CreateDynPanel> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final ThemeData theme = Theme.of(context); final ThemeData theme = Theme.of(context);
return Scaffold( return Column(
backgroundColor: Colors.transparent,
resizeToAvoidBottomInset: false,
appBar: _buildAppBar(theme),
body: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
_buildAppBar(theme),
Expanded( Expanded(
child: ListView( child: ListView(
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
@@ -80,8 +77,7 @@ class _CreateDynPanelState extends CommonPublishPageState<CreateDynPanel> {
children: [ children: [
TextButton( TextButton(
style: TextButton.styleFrom( style: TextButton.styleFrom(
overlayColor: overlayColor: hasTopic ? Colors.transparent : null,
hasTopic ? Colors.transparent : null,
splashFactory: splashFactory:
hasTopic ? NoSplash.splashFactory : null, hasTopic ? NoSplash.splashFactory : null,
shape: hasTopic shape: hasTopic
@@ -121,8 +117,7 @@ class _CreateDynPanelState extends CommonPublishPageState<CreateDynPanel> {
), ),
), ),
TextSpan( TextSpan(
text: text: hasTopic ? topic.value!.second : '选择话题',
hasTopic ? topic.value!.second : '选择话题',
style: TextStyle( style: TextStyle(
color: hasTopic color: hasTopic
? null ? null
@@ -202,7 +197,6 @@ class _CreateDynPanelState extends CommonPublishPageState<CreateDynPanel> {
_buildToolbar, _buildToolbar,
buildPanelContainer(Colors.transparent), buildPanelContainer(Colors.transparent),
], ],
),
); );
} }

View File

@@ -125,7 +125,6 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
VoidCallback? onDispose, VoidCallback? onDispose,
}) => }) =>
Scaffold( Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar( appBar: AppBar(
title: const Text('评论详情'), title: const Text('评论详情'),
titleSpacing: automaticallyImplyLeading ? null : 12, titleSpacing: automaticallyImplyLeading ? null : 12,

View File

@@ -272,19 +272,14 @@ class _LiveRoomPageState extends State<LiveRoomPage>
); );
} }
Widget get _buildPH => Scaffold( Widget get _buildPH => Column(
resizeToAvoidBottomInset: false, children: [
appBar: _buildAppBar, _buildAppBar,
backgroundColor: Colors.transparent, ..._buildBodyP,
body: Column( ],
children: _buildBodyP,
),
); );
Widget get _buildPP => Scaffold( Widget get _buildPP => Stack(
resizeToAvoidBottomInset: false,
backgroundColor: Colors.transparent,
body: Stack(
clipBehavior: Clip.none, clipBehavior: Clip.none,
children: [ children: [
_buildAppBar, _buildAppBar,
@@ -336,7 +331,6 @@ class _LiveRoomPageState extends State<LiveRoomPage>
), ),
), ),
], ],
),
); );
@override @override

View File

@@ -202,7 +202,6 @@ class _MainAppState extends State<MainApp>
systemNavigationBarIconBrightness: theme.brightness.reverse, systemNavigationBarIconBrightness: theme.brightness.reverse,
), ),
child: Scaffold( child: Scaffold(
resizeToAvoidBottomInset: false,
extendBody: true, extendBody: true,
body: Row( body: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,

View File

@@ -29,7 +29,6 @@ class _SearchPageState extends State<SearchPage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
final theme = Theme.of(context); final theme = Theme.of(context);
return Scaffold( return Scaffold(
resizeToAvoidBottomInset: true,
appBar: AppBar( appBar: AppBar(
shape: Border( shape: Border(
bottom: BorderSide( bottom: BorderSide(

View File

@@ -357,15 +357,11 @@ class VideoDetailController extends GetxController
} }
} catch (_) {} } catch (_) {}
} else if (isLoadPrevious) { } else if (isLoadPrevious) {
if (data.mediaList?.isNotEmpty == true) {
mediaList.insertAll(0, data.mediaList!); mediaList.insertAll(0, data.mediaList!);
}
} else { } else {
if (data.mediaList?.isNotEmpty == true) {
mediaList.addAll(data.mediaList!); mediaList.addAll(data.mediaList!);
} }
} }
}
} else { } else {
SmartDialog.showToast(res['msg']); SmartDialog.showToast(res['msg']);
} }
@@ -1477,7 +1473,7 @@ class VideoDetailController extends GetxController
} catch (_) {} } catch (_) {}
} }
if (GStorage.showViewPoints && playInfo.viewPoints?.isNotEmpty == true) { if (playInfo.viewPoints?.isNotEmpty == true && GStorage.showViewPoints) {
try { try {
viewPointList = playInfo.viewPoints!.map((item) { viewPointList = playInfo.viewPoints!.map((item) {
double start = double start =

View File

@@ -416,8 +416,9 @@ class _BangumiIntroPanelState extends State<BangumiIntroPanel>
return Row( return Row(
spacing: 6, spacing: 6,
children: [ children: [
if (bangumiItem.areas?.isNotEmpty == true)
Text( Text(
(bangumiItem.areas!.isNotEmpty ? bangumiItem.areas!.first.name! : ''), bangumiItem.areas!.first.name!,
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
color: theme.colorScheme.outline, color: theme.colorScheme.outline,

View File

@@ -259,7 +259,7 @@ class _MediaListPanelState
], ],
), ),
), ),
if (showDelBtn && isCurr) if (showDelBtn && !isCurr)
Positioned( Positioned(
right: 12, right: 12,
bottom: -6, bottom: -6,

View File

@@ -54,11 +54,11 @@ class _NoteListPageState extends CommonSlidePageState<NoteListPage> {
Widget buildPage(ThemeData theme) { Widget buildPage(ThemeData theme) {
return Scaffold( return Scaffold(
key: _key, key: _key,
resizeToAvoidBottomInset: false, body: Column(
body: Scaffold( children: [
backgroundColor: Colors.transparent, SizedBox(
resizeToAvoidBottomInset: false, height: 45,
appBar: AppBar( child: AppBar(
automaticallyImplyLeading: false, automaticallyImplyLeading: false,
titleSpacing: 16, titleSpacing: 16,
toolbarHeight: 45, toolbarHeight: 45,
@@ -84,7 +84,9 @@ class _NoteListPageState extends CommonSlidePageState<NoteListPage> {
const SizedBox(width: 16), const SizedBox(width: 16),
], ],
), ),
body: enableSlide ? slideList(theme) : buildList(theme), ),
Expanded(child: enableSlide ? slideList(theme) : buildList(theme))
],
), ),
); );
} }

View File

@@ -35,7 +35,6 @@ class _ViewPointsPageState
@override @override
Widget buildPage(ThemeData theme) { Widget buildPage(ThemeData theme) {
return Scaffold( return Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar( appBar: AppBar(
automaticallyImplyLeading: false, automaticallyImplyLeading: false,
titleSpacing: 16, titleSpacing: 16,

View File

@@ -119,7 +119,6 @@ class PiliScheme {
'id': commentSecondaryId, 'id': commentSecondaryId,
}, },
() => Scaffold( () => Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar( appBar: AppBar(
title: const Text('评论详情'), title: const Text('评论详情'),
actions: [ actions: [
@@ -257,7 +256,6 @@ class PiliScheme {
'enterUri': queryParameters['enterUri'], 'enterUri': queryParameters['enterUri'],
}, },
() => Scaffold( () => Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar( appBar: AppBar(
title: const Text('评论详情'), title: const Text('评论详情'),
actions: [ actions: [
@@ -306,7 +304,6 @@ class PiliScheme {
'type': type, 'type': type,
}, },
() => Scaffold( () => Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar( appBar: AppBar(
title: const Text('评论详情'), title: const Text('评论详情'),
actions: [ actions: [
@@ -381,7 +378,6 @@ class PiliScheme {
'id': commentSecondaryId, 'id': commentSecondaryId,
}, },
() => Scaffold( () => Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar( appBar: AppBar(
title: const Text('评论详情'), title: const Text('评论详情'),
actions: [ actions: [
@@ -767,7 +763,6 @@ class PiliScheme {
'id': commentSecondaryId, 'id': commentSecondaryId,
}, },
() => Scaffold( () => Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar( appBar: AppBar(
title: const Text('评论详情'), title: const Text('评论详情'),
actions: pageType == '1' actions: pageType == '1'