Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

fix: info page appearance (#857)

ErBW_s1b8ef1596557
diff --git a/lib/bean/card/bangumi_info_card.dart b/lib/bean/card/bangumi_info_card.dart
index e1cba67b..f54cac8c 100644
--- a/lib/bean/card/bangumi_info_card.dart
+++ b/lib/bean/card/bangumi_info_card.dart
@@ -96,7 +96,7 @@ class _BangumiInfoCardVState extends State<BangumiInfoCardV> {
showTitles: true,
reservedSize: 30,
getTitlesWidget: (value, meta) => SideTitleWidget(
- meta: meta,
+ axisSide: AxisSide.bottom,
space: 10,
child: Text(value.toInt().toString()),
),
@@ -126,7 +126,7 @@ class _BangumiInfoCardVState extends State<BangumiInfoCardV> {
widget.bangumiItem.nameCn == ''
? widget.bangumiItem.name
: (widget.bangumiItem.nameCn),
- maxLines: 4,
+ maxLines: 2,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.headlineSmall,
),
diff --git a/lib/pages/info/info_page.dart b/lib/pages/info/info_page.dart
index 6bd6da2c..7d46fdc3 100644
--- a/lib/pages/info/info_page.dart
+++ b/lib/pages/info/info_page.dart
@@ -192,8 +192,6 @@ class _InfoPageState extends State<InfoPage>
),
),
SafeArea(
- left: false,
- right: false,
bottom: false,
child: EmbeddedNativeControlArea(
child: Align(
diff --git a/lib/pages/info/info_tabview.dart b/lib/pages/info/info_tabview.dart
index c5048d0a..c6bd2043 100644
--- a/lib/pages/info/info_tabview.dart
+++ b/lib/pages/info/info_tabview.dart
@@ -130,9 +130,6 @@ class _InfoTabViewState extends State<InfoTabView> {
return SelectableText(
infoController.bangumiItem.summary,
textAlign: TextAlign.start,
- scrollBehavior: const ScrollBehavior().copyWith(
- scrollbars: false,
- ),
scrollPhysics: NeverScrollableScrollPhysics(),
selectionHeightStyle: ui.BoxHeightStyle.max,
);
@@ -253,14 +250,18 @@ class _InfoTabViewState extends State<InfoTabView> {
return SliverList.builder(
itemCount: 4,
itemBuilder: (context, _) {
- return Center(
- child: Padding(
- padding: const EdgeInsets.all(16),
- child: SizedBox(
- width: MediaQuery.sizeOf(context).width > maxWidth
- ? maxWidth
- : MediaQuery.sizeOf(context).width - 32,
- child: CommentsCard.bone(),
+ return SafeArea(
+ top: false,
+ bottom: false,
+ child: Center(
+ child: Padding(
+ padding: const EdgeInsets.all(16),
+ child: SizedBox(
+ width: MediaQuery.sizeOf(context).width > maxWidth
+ ? maxWidth
+ : MediaQuery.sizeOf(context).width - 32,
+ child: CommentsCard.bone(),
+ ),
),
),
);
@@ -291,30 +292,38 @@ class _InfoTabViewState extends State<InfoTabView> {
addAutomaticKeepAlives: false,
itemCount: infoController.commentsList.length,
itemBuilder: (context, index) {
- return Center(
- child: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 16.0),
- child: SizedBox(
- width: MediaQuery.sizeOf(context).width > maxWidth
- ? maxWidth
- : MediaQuery.sizeOf(context).width - 32,
- child: CommentsCard(
- commentItem: infoController.commentsList[index],
+ return SafeArea(
+ top: false,
+ bottom: false,
+ child: Center(
+ child: Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16.0),
+ child: SizedBox(
+ width: MediaQuery.sizeOf(context).width > maxWidth
+ ? maxWidth
+ : MediaQuery.sizeOf(context).width - 32,
+ child: CommentsCard(
+ commentItem: infoController.commentsList[index],
+ ),
),
),
),
);
},
separatorBuilder: (BuildContext context, int index) {
- return Center(
- child: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 16.0),
- child: SizedBox(
- width: MediaQuery.sizeOf(context).width > maxWidth
- ? maxWidth
- : MediaQuery.sizeOf(context).width - 32,
- child: Divider(
- thickness: 0.5, indent: 10, endIndent: 10),
+ return SafeArea(
+ top: false,
+ bottom: false,
+ child: Center(
+ child: Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16.0),
+ child: SizedBox(
+ width: MediaQuery.sizeOf(context).width > maxWidth
+ ? maxWidth
+ : MediaQuery.sizeOf(context).width - 32,
+ child: Divider(
+ thickness: 0.5, indent: 10, endIndent: 10),
+ ),
),
),
);
@@ -431,7 +440,11 @@ class _InfoTabViewState extends State<InfoTabView> {
NestedScrollView.sliverOverlapAbsorberHandleFor(context),
),
SliverToBoxAdapter(
- child: infoController.isLoading ? infoBodyBone : infoBody,
+ child: SafeArea(
+ top: false,
+ bottom: false,
+ child: infoController.isLoading ? infoBodyBone : infoBody,
+ ),
),
],
);
diff --git a/pubspec.lock b/pubspec.lock
index dec1bb0e..7ff17b23 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -435,10 +435,10 @@ packages:
dependency: "direct main"
description:
name: fl_chart
- sha256: "5276944c6ffc975ae796569a826c38a62d2abcf264e26b88fa6f482e107f4237"
+ sha256: "74959b99b92b9eebeed1a4049426fd67c4abc3c5a0f4d12e2877097d6a11ae08"
url: "https://pub.dev"
source: hosted
- version: "0.70.2"
+ version: "0.69.2"
flutter:
dependency: "direct main"
description: flutter
diff --git a/pubspec.yaml b/pubspec.yaml
index 13ad6750..3de55625 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -83,7 +83,7 @@ dependencies:
synchronized: any
flutter_svg: ^2.0.17
antlr4: ^4.13.2
- fl_chart: ^0.70.2
+ fl_chart: ^0.69.2
skeletonizer: ^1.4.3
webview_windows:
git: