From 9d4458c4895e38510a2b77117811c0cf7cbf87fd Mon Sep 17 00:00:00 2001 From: shen <> Date: Tue, 27 Oct 2026 04:01:49 -0700 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E4=BF=AE=E5=A4=8D=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E9=A1=B6=E9=83=A8=E6=A0=87=E9=A2=98=E9=81=AE=E6=8C=A1=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E6=8C=89=E9=92=AE=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96AppBar=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/main.dart | 1 + lib/screens/home_screen.dart | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index f803564..db487ba 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -30,6 +30,7 @@ class AeroTrackApp extends StatelessWidget { backgroundColor: Colors.white, foregroundColor: Color(0xFF0F172A), elevation: 0, + centerTitle: false, ), ), home: HomeScreen(storageService: storageService), diff --git a/lib/screens/home_screen.dart b/lib/screens/home_screen.dart index f935ac4..3245491 100644 --- a/lib/screens/home_screen.dart +++ b/lib/screens/home_screen.dart @@ -226,7 +226,10 @@ class _HomeScreenState extends State { appBar: AppBar( backgroundColor: Colors.white, elevation: 0, + centerTitle: false, + titleSpacing: 16, title: const Row( + mainAxisSize: MainAxisSize.min, children: [ Icon(Icons.air, color: Color(0xFF2563EB), size: 24), SizedBox(width: 8), @@ -244,6 +247,7 @@ class _HomeScreenState extends State { IconButton( icon: const Icon(Icons.sync, color: Color(0xFF2563EB)), tooltip: '局域网同步', + visualDensity: VisualDensity.compact, onPressed: () async { await Navigator.of(context).push( MaterialPageRoute( @@ -253,14 +257,10 @@ class _HomeScreenState extends State { _loadData(); }, ), - IconButton( - icon: const Icon(Icons.tune, color: Color(0xFF475569)), - tooltip: '配置用药方案', - onPressed: _openPlanConfig, - ), IconButton( icon: const Icon(Icons.history, color: Color(0xFF475569)), tooltip: '历史记录', + visualDensity: VisualDensity.compact, onPressed: () async { await Navigator.of(context).push( MaterialPageRoute( @@ -273,6 +273,7 @@ class _HomeScreenState extends State { IconButton( icon: const Icon(Icons.settings_outlined, color: Color(0xFF475569)), tooltip: '系统设置', + visualDensity: VisualDensity.compact, onPressed: () async { await Navigator.of(context).push( MaterialPageRoute( @@ -282,6 +283,7 @@ class _HomeScreenState extends State { _loadData(); }, ), + const SizedBox(width: 8), ], ), body: SingleChildScrollView(