优化节点列表国旗显示问题
Some checks failed
Build Android APK / 编译 libcore.aar (push) Has been cancelled
Build Android APK / 编译 Android APK (release) (push) Has been cancelled
Build Android APK / 创建 GitHub Release (push) Has been cancelled
Build Multi-Platform / 编译 libcore (iOS/tvOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Android) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Windows) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (macOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Linux) (push) Has been cancelled
Build Multi-Platform / 构建 Android APK (push) Has been cancelled
Build Multi-Platform / 构建 Windows (push) Has been cancelled
Build Multi-Platform / 构建 macOS (push) Has been cancelled
Build Multi-Platform / 构建 Linux (push) Has been cancelled
Build Multi-Platform / 构建 iOS (push) Has been cancelled
Build Multi-Platform / 创建 Release (push) Has been cancelled
Build Windows / 编译 libcore (Windows) (push) Has been cancelled
Build Windows / build (push) Has been cancelled

(cherry picked from commit 7b9d6bb33be8b0c619d35b835017e963d5bdc97f)
This commit is contained in:
Rust 2025-10-31 08:28:01 -07:00 committed by speakeloudest
parent 138209929b
commit 61ab0ea225

View File

@ -542,27 +542,17 @@ class KRHomeNodeListView extends GetView<KRHomeController> {
}
}
//
Color? getIconColor(int delay) {
if (delay == 0) {
return null;
} else if (delay >= 3000) {
return Colors.red;
}
return null;
}
return Container(
key: ValueKey(item.id),
padding: EdgeInsets.symmetric(vertical: 8.w),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
KrLocalImage(
imageName: "home_list_location",
// 🔧
KRCountryFlag(
countryCode: item.country,
width: 36.w,
height: 36.w,
color: getIconColor(item.urlTestDelay.value),
),
SizedBox(width: 8.w),
Expanded(