Fix url validate issues

Fix check ip performance problem

Optimize resources page
This commit is contained in:
chen08209
2024-07-07 10:02:10 +08:00
parent 5c3a0c576d
commit b20d9edec2
34 changed files with 1068 additions and 990 deletions

View File

@@ -17,6 +17,7 @@ class AppController {
late ClashConfig clashConfig;
late Measure measure;
late Function updateClashConfigDebounce;
late Function addCheckIpNumDebounce;
AppController(this.context) {
appState = context.read<AppState>();
@@ -25,6 +26,9 @@ class AppController {
updateClashConfigDebounce = debounce<Function()>(() async {
await updateClashConfig();
});
addCheckIpNumDebounce = debounce((){
appState.checkIpNum++;
});
measure = Measure.of(context);
}