From d6b2d308ebc890434535a8d58dbb08cda81599a2 Mon Sep 17 00:00:00 2001 From: Zhou Weidong <502333560@qq.com> Date: Wed, 21 Oct 2026 10:16:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(nav):=20=E5=BA=95=E9=83=A8=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E5=9B=BE=E6=A0=87=E4=B8=8E=E6=96=87=E5=AD=97=E6=94=BE?= =?UTF-8?q?=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/core/theme/app_dimens.dart | 6 +++--- lib/core/widgets/app_bottom_nav.dart | 2 +- test/theme/app_dimens_test.dart | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/core/theme/app_dimens.dart b/lib/core/theme/app_dimens.dart index 6808229..828b371 100644 --- a/lib/core/theme/app_dimens.dart +++ b/lib/core/theme/app_dimens.dart @@ -34,7 +34,7 @@ abstract final class AppDimens { static const double previewCardTitle = 13; static const double previewSectionTitle = 14; static const double chipFont = 10; - static const double navLabel = 10; + static const double navLabel = 12; static const double buttonHeight = 48; static const double primaryButtonHeight = 52; @@ -45,8 +45,8 @@ abstract final class AppDimens { static const double tapTarget = 44; static const double contentHeaderHeight = 46; - static const double navHeight = 64; - static const double navIcon = 20; + static const double navHeight = 68; + static const double navIcon = 24; static const double progressHeight = 3; static const double progressRadius = 2; static const double progressLineHeight = 3; diff --git a/lib/core/widgets/app_bottom_nav.dart b/lib/core/widgets/app_bottom_nav.dart index 9081ebb..102feb7 100644 --- a/lib/core/widgets/app_bottom_nav.dart +++ b/lib/core/widgets/app_bottom_nav.dart @@ -107,7 +107,7 @@ class _NavDestination extends StatelessWidget { color: item.selected ? AppColors.blue : unselectedColor, ), ), - const SizedBox(height: 2), + const SizedBox(height: 3), Text( item.label, maxLines: 1, diff --git a/test/theme/app_dimens_test.dart b/test/theme/app_dimens_test.dart index 87b1073..4051eb1 100644 --- a/test/theme/app_dimens_test.dart +++ b/test/theme/app_dimens_test.dart @@ -16,11 +16,12 @@ void main() { expect(AppDimens.listTitle, 15); expect(AppDimens.sectionTitle, 16); expect(AppDimens.pageTitle, 20); - expect(AppDimens.navLabel, 10); + expect(AppDimens.navLabel, 12); + expect(AppDimens.navIcon, 24); expect(AppDimens.buttonHeight, 48); expect(AppDimens.primaryButtonHeight, 52); expect(AppDimens.tapTarget, 44); - expect(AppDimens.navHeight, 64); + expect(AppDimens.navHeight, 68); expect(AppDimens.progressHeight, 3); }); }