feat: 节点测速auto调整

This commit is contained in:
2025-11-26 22:57:52 -08:00
parent b059d01556
commit 4fdf4da4f3
3 changed files with 508 additions and 256 deletions
@@ -98,6 +98,7 @@ class HINodeListController extends GetxController with WidgetsBindingObserver {
void onInit() {
super.onInit();
WidgetsBinding.instance.addObserver(this);
_loadSelectedCountry();
}
@override
@@ -124,4 +125,14 @@ class HINodeListController extends GetxController with WidgetsBindingObserver {
WidgetsBinding.instance.removeObserver(this);
super.onClose();
}
Future<void> _loadSelectedCountry() async {
try {
final v =
await KRSecureStorage().kr_readData(key: 'SELECTED_COUNTRY_TAG');
if (v != null && v.isNotEmpty) {
homeController.kr_coutryText.value = v;
}
} catch (_) {}
}
}