From 4651291468941636a0bdbab674ac306da21388a9 Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 23 Feb 2026 05:09:34 -0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=AF=BC=E8=88=AA=E6=A0=8F=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E8=93=9D=E8=89=B2=E8=8D=AF=E4=B8=B8=E8=83=8C=E6=99=AF?= =?UTF-8?q?=EF=BC=8C=E6=94=B9=E4=B8=BA=E5=9B=BE=E6=A0=87/=E6=96=87?= =?UTF-8?q?=E5=AD=97=E9=AB=98=E4=BA=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - indicatorColor: transparent 去掉 Material 3 默认的选中背景 - 选中项:图标 + 文字改为 primary 紫色,字重 w600 - 未选中项:图标 + 文字灰色 (textSecondary),字重 w400 - 与微信/支付宝/飞书的导航栏风格一致 Co-Authored-By: Claude Opus 4.6 --- it0_app/lib/core/theme/app_theme.dart | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/it0_app/lib/core/theme/app_theme.dart b/it0_app/lib/core/theme/app_theme.dart index 2281932..1b0b35b 100644 --- a/it0_app/lib/core/theme/app_theme.dart +++ b/it0_app/lib/core/theme/app_theme.dart @@ -29,6 +29,30 @@ class AppTheme { borderSide: BorderSide.none, ), ), + navigationBarTheme: NavigationBarThemeData( + backgroundColor: AppColors.surface, + indicatorColor: Colors.transparent, + labelTextStyle: WidgetStateProperty.resolveWith((states) { + if (states.contains(WidgetState.selected)) { + return const TextStyle( + fontSize: 11, + fontWeight: FontWeight.w600, + color: AppColors.primary, + ); + } + return const TextStyle( + fontSize: 11, + fontWeight: FontWeight.w400, + color: AppColors.textSecondary, + ); + }), + iconTheme: WidgetStateProperty.resolveWith((states) { + if (states.contains(WidgetState.selected)) { + return const IconThemeData(color: AppColors.primary, size: 24); + } + return const IconThemeData(color: AppColors.textSecondary, size: 24); + }), + ), ); static ThemeData get lightTheme => ThemeData(