From 758a01a49dc552a6da2313788340a2e6dc15d1b7 Mon Sep 17 00:00:00 2001 From: Alfreedom <00tango.bromine@icloud.com> Date: Tue, 3 Sep 2024 14:20:12 +0200 Subject: [PATCH] fix --- lib/apis/core/connectivity/connectivity.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/apis/core/connectivity/connectivity.dart b/lib/apis/core/connectivity/connectivity.dart index f63c213..36100d7 100644 --- a/lib/apis/core/connectivity/connectivity.dart +++ b/lib/apis/core/connectivity/connectivity.dart @@ -17,6 +17,8 @@ class ConnectivityState implements IConnectivity { @override Future init() async { if (_initialized) return; + final result = await Connectivity().checkConnectivity(); + _updateConnectionStatus(result); Connectivity().onConnectivityChanged.listen( _updateConnectionStatus, );