Skip to content

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

fix(ui): unify app bar title styles and heights across main pages

Predidit8c0dcc9ddeb9
diff --git a/lib/pages/my/my_page.dart b/lib/pages/my/my_page.dart
index c0932a8b..08d0e64e 100644
--- a/lib/pages/my/my_page.dart
+++ b/lib/pages/my/my_page.dart
@@ -70,7 +70,17 @@ class _MyPageState extends State<MyPage> {
final bool wide =
MediaQuery.sizeOf(context).width > LayoutBreakpoint.compact['width']!;
return Scaffold(
- appBar: const SysAppBar(title: Text('我的'), needTopOffset: false),
+ appBar: SysAppBar(
+ toolbarHeight: 72,
+ title: Text(
+ '我的',
+ style: Theme.of(context)
+ .textTheme
+ .headlineSmall
+ ?.copyWith(fontWeight: FontWeight.w700),
+ ),
+ needTopOffset: false,
+ ),
body: SafeArea(
top: false,
bottom: false,
diff --git a/lib/pages/timeline/timeline_page.dart b/lib/pages/timeline/timeline_page.dart
index 5b33e4b9..f38c10d2 100644
--- a/lib/pages/timeline/timeline_page.dart
+++ b/lib/pages/timeline/timeline_page.dart
@@ -243,12 +243,14 @@ class _TimelinePageState extends State<TimelinePage> {
return Scaffold(
appBar: SysAppBar(
needTopOffset: false,
- toolbarHeight: narrowPortrait
- ? (scaler.scale(20) + 24).clamp(56.0, double.infinity)
- : null,
+ toolbarHeight: 72,
title: narrowPortrait
? _buildSeasonPicker(context, loading: loading, inAppBar: true)
- : const Text('时间表'),
+ : Text(
+ '时间表',
+ style: theme.textTheme.headlineSmall
+ ?.copyWith(fontWeight: FontWeight.w700),
+ ),
actions: [
Padding(
padding: const EdgeInsets.only(right: 12),