opt: appbar theme

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-21 17:08:52 +08:00
parent 37ddebca50
commit 5b2a4fa681
46 changed files with 51 additions and 248 deletions

View File

@@ -51,15 +51,12 @@ class _FavPanelState extends State<FavPanel> {
top: Radius.circular(18),
),
),
centerTitle: false,
elevation: 0,
leading: IconButton(
tooltip: '关闭',
onPressed: Get.back,
icon: const Icon(Icons.close_outlined),
),
title: Text('添加到收藏夹',
style: Theme.of(context).textTheme.titleMedium),
title: Text('添加到收藏夹'),
actions: [
TextButton.icon(
onPressed: () {

View File

@@ -90,14 +90,11 @@ class _GroupPanelState extends State<GroupPanel> {
top: Radius.circular(18),
),
),
centerTitle: false,
elevation: 0,
leading: IconButton(
tooltip: '关闭',
onPressed: Get.back,
icon: const Icon(Icons.close_outlined)),
title: Text('设置关注分组',
style: Theme.of(context).textTheme.titleMedium),
title: Text('设置关注分组'),
),
Expanded(
child: Material(

View File

@@ -447,7 +447,6 @@ class _VideoDetailPageState extends State<VideoDetailPage>
: AppBar(
backgroundColor:
showStatusBarBackgroundColor ? null : Colors.black,
elevation: 0,
toolbarHeight: 0,
systemOverlayStyle: SystemUiOverlayStyle(
statusBarIconBrightness:
@@ -835,7 +834,6 @@ class _VideoDetailPageState extends State<VideoDetailPage>
: AppBar(
backgroundColor:
showStatusBarBackgroundColor ? null : Colors.black,
elevation: 0,
toolbarHeight: 0,
systemOverlayStyle: SystemUiOverlayStyle(
statusBarIconBrightness:
@@ -868,7 +866,6 @@ class _VideoDetailPageState extends State<VideoDetailPage>
: AppBar(
backgroundColor:
showStatusBarBackgroundColor ? null : Colors.black,
elevation: 0,
toolbarHeight: 0,
systemOverlayStyle: SystemUiOverlayStyle(
statusBarIconBrightness:
@@ -933,8 +930,6 @@ class _VideoDetailPageState extends State<VideoDetailPage>
child: AppBar(
primary: false,
foregroundColor: Colors.white,
elevation: 0,
scrolledUnderElevation: 0,
backgroundColor: Colors.transparent,
actions: (videoDetailController.userInfo == null)
? null

View File

@@ -33,8 +33,6 @@ class ScrollAppBar extends StatelessWidget {
padding: EdgeInsets.only(top: statusBarHeight),
child: AppBar(
primary: false,
elevation: 0,
scrolledUnderElevation: 0,
centerTitle: true,
title: TextButton(
onPressed: () => callback(),

View File

@@ -1339,12 +1339,8 @@ class _HeaderControlState extends State<HeaderControl> {
return AppBar(
backgroundColor: Colors.transparent,
foregroundColor: Colors.white,
elevation: 0,
scrolledUnderElevation: 0,
primary: false,
centerTitle: false,
automaticallyImplyLeading: false,
titleSpacing: 10,
title: Row(
children: [
SizedBox(