From b19bf1eda4e038cd07fdac937882a42e6d08d8c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AB=A0=E6=96=87=E8=BD=A9?= <12812285557@qq.com> Date: Tue, 7 Sep 2021 16:12:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=95=E9=83=A8=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/power_logger_view.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/power_logger_view.dart b/lib/src/power_logger_view.dart index fb06abb..bfb1575 100644 --- a/lib/src/power_logger_view.dart +++ b/lib/src/power_logger_view.dart @@ -50,8 +50,10 @@ class _PowerLoggerViewState extends State { return BottomNavigationBar( backgroundColor: Colors.white, currentIndex: _currentIndex, - selectedLabelStyle: TextStyle(color: Colors.blue,fontSize: 14), - unselectedLabelStyle: TextStyle(color: Color(0xFF666666),fontSize: 12), + selectedLabelStyle: TextStyle(fontSize: 14), + selectedItemColor: Colors.blue, + unselectedItemColor: Color(0xFF666666), + unselectedLabelStyle: TextStyle(fontSize: 12), onTap: (index) { _currentIndex = index; kSetState(() {});