refactor: perf improvements

This commit is contained in:
cogwheel0
2025-09-23 11:00:25 +05:30
parent 41216ea432
commit 8da8a78001
7 changed files with 205 additions and 93 deletions

View File

@@ -34,8 +34,8 @@ class ConnectivityService {
_checkConnectivity();
});
// Check every 5 seconds
_connectivityTimer = Timer.periodic(const Duration(seconds: 5), (_) {
// Check periodically; balance responsiveness with battery/network usage
_connectivityTimer = Timer.periodic(const Duration(seconds: 10), (_) {
_checkConnectivity();
});
}