feat: 13. 国家节点列表用4・4方块展示节点连接状态
14.禁止横屏
This commit is contained in:
@@ -539,12 +539,22 @@ class HINodeListView extends GetView<HINodeListController> {
|
||||
}
|
||||
|
||||
// 4. 返回最终的 Text 组件
|
||||
return Text(
|
||||
delayText,
|
||||
style: KrAppTextStyle(
|
||||
fontSize: 10,
|
||||
color: delayColor, // 使用动态计算出的颜色
|
||||
fontWeight: FontWeight.w500,
|
||||
// return Text(
|
||||
// delayText,
|
||||
// style: KrAppTextStyle(
|
||||
// fontSize: 10,
|
||||
// color: delayColor, // 使用动态计算出的颜色
|
||||
// fontWeight: FontWeight.w500,
|
||||
// ),
|
||||
// );
|
||||
|
||||
return Container(
|
||||
width: 4,
|
||||
height: 4,
|
||||
// 使用 BoxDecoration 来设置形状和颜色
|
||||
decoration: BoxDecoration(
|
||||
color: delayColor, // ✅ 核心:使用之前逻辑计算出的动态颜色
|
||||
// shape: BoxShape.circle, // 使用圆形看起来更柔和,也可以用 BoxShape.rectangle
|
||||
),
|
||||
);
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user