fix: 使用导航键点不到合集列表末项与错误日志

This commit is contained in:
orz12
2024-02-07 21:04:36 +08:00
parent a5aaec7b58
commit 88bc9e3ff9
2 changed files with 104 additions and 99 deletions

View File

@@ -27,23 +27,26 @@ class _AboutPageState extends State<AboutPage> {
appBar: AppBar(
title: Text('关于', style: Theme.of(context).textTheme.titleMedium),
),
body: SingleChildScrollView(
child: Column(
body: ListView(
children: [
ConstrainedBox(constraints:
const BoxConstraints(
maxHeight: 150),
child:
Image.asset(
'assets/images/logo/logo_android_2.png',
width: 150,
),
Text(
'PiliPala',
style: Theme.of(context).textTheme.titleMedium,
),
const SizedBox(height: 6),
Text(
ListTile(
title: Text('PiliPala',
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.titleMedium!.copyWith(height: 2)),
subtitle: Text(
'使用Flutter开发的哔哩哔哩第三方客户端',
textAlign: TextAlign.center,
style: TextStyle(color: Theme.of(context).colorScheme.outline),
),
const SizedBox(height: 20),
),
Obx(
() => ListTile(
title: const Text('当前版本'),
@@ -140,7 +143,6 @@ class _AboutPageState extends State<AboutPage> {
),
],
),
),
);
}
}

View File

@@ -131,6 +131,9 @@ class _SeasonPanelState extends State<SeasonPanel> {
Theme.of(context).dividerColor.withOpacity(0.1),
),
Expanded(
child: Padding(
padding: EdgeInsets.only(
bottom: MediaQuery.of(context).padding.bottom),
child: Material(
child: ScrollablePositionedList.builder(
itemCount: episodes.length,
@@ -163,7 +166,7 @@ class _SeasonPanelState extends State<SeasonPanel> {
itemScrollController: itemScrollController,
),
),
),
)),
],
),
);