主界面 作业里成接入
This commit is contained in:
@@ -777,15 +777,24 @@ class _RunningStatusPageState extends State<RunningStatusPage> {
|
||||
}
|
||||
|
||||
Widget _buildTab(String title, {required bool isActive}) {
|
||||
return Text(
|
||||
title,
|
||||
style: TextStyle(
|
||||
color: isActive ? const Color(0xFF1677FF) : const Color(0xFF666666),
|
||||
fontSize: 16,
|
||||
fontWeight: isActive ? FontWeight.bold : FontWeight.normal,
|
||||
decoration: isActive ? TextDecoration.underline : null,
|
||||
decorationColor: const Color(0xFF1677FF),
|
||||
decorationThickness: 2,
|
||||
return Container(
|
||||
padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 4), // 控制整体间距
|
||||
decoration: BoxDecoration(
|
||||
border: Border(
|
||||
bottom: BorderSide(
|
||||
color: isActive ? const Color(0xFF1677FF) : Colors.transparent,
|
||||
width: 2, // 下划线粗细
|
||||
),
|
||||
),
|
||||
),
|
||||
child: Text(
|
||||
title,
|
||||
style: TextStyle(
|
||||
color: isActive ? const Color(0xFF1677FF) : const Color(0xFF666666),
|
||||
fontSize: 16,
|
||||
fontWeight: isActive ? FontWeight.w600 : FontWeight.normal,
|
||||
height: 1.0, // 文字行高
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -881,7 +890,7 @@ class _RunningStatusPageState extends State<RunningStatusPage> {
|
||||
child: Container(
|
||||
color: Colors.white,
|
||||
margin: const EdgeInsets.only(top: 8),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 4),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
@@ -902,11 +911,15 @@ class _RunningStatusPageState extends State<RunningStatusPage> {
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: const Color(0xFF1677FF),
|
||||
foregroundColor: Colors.white,
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
|
||||
elevation: 2,
|
||||
shadowColor: const Color(0xFF1677FF).withOpacity(0.3),
|
||||
shape: const CircleBorder(),
|
||||
// 👇 圆形必须用对称内边距
|
||||
padding: const EdgeInsets.all(12),
|
||||
//padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 10),
|
||||
),
|
||||
onPressed: _refreshDeviceData,
|
||||
child: const Text("刷新数据", style: TextStyle(fontSize: 14)),
|
||||
child: const Icon(Icons.refresh_rounded, size: 18),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user