mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-13 20:03:46 +00:00
Fix network monitoring initialization - NetworkMonitor service now properly registers and listens for connectivity changes
Co-authored-by: monkeyWie <[email protected]>
This commit is contained in:
1 parent
9955e482a4
commit
5a628bb44a
3 files changed
+16
-16
No files matched your search
@@ -1,10 +1,12 @@
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import '../../../../util/network_monitor.dart';
|
||||
import '../controllers/root_controller.dart';
|
||||
|
||||
class RootBinding extends Bindings {
|
||||
@override
|
||||
void dependencies() {
|
||||
Get.lazyPut<RootController>(() => RootController(), fenix: true);
|
||||
Get.put<NetworkMonitor>(NetworkMonitor(), permanent: true);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user