Closed pallavbohara closed 4 years ago
Hello, It is not working. I am trying like this(In reference to your 'NetWork Aware Code' in connectivity_servie.dart :
ConnectivityStatus _getStatusFromResult(ConnectivityResult result) { if (kIsWeb) { return ConnectivityStatus.Cellular; } switch (result) { case ConnectivityResult.mobile: return ConnectivityStatus.Cellular; break; case ConnectivityResult.wifi: return ConnectivityStatus.Wifi; break; case ConnectivityResult.none: return ConnectivityStatus.Offline; break; default: return ConnectivityStatus.Offline; } }
But It is always picking Offline code. I am attacing whole project zip in case you need.
network_sensitive (2).zip
Originally posted by @pallavbohara in https://github.com/FilledStacks/flutter-tutorials/issues/100#issuecomment-684520808
Hello, It is not working. I am trying like this(In reference to your 'NetWork Aware Code' in connectivity_servie.dart :
ConnectivityStatus _getStatusFromResult(ConnectivityResult result) { if (kIsWeb) { return ConnectivityStatus.Cellular; } switch (result) { case ConnectivityResult.mobile: return ConnectivityStatus.Cellular; break; case ConnectivityResult.wifi: return ConnectivityStatus.Wifi; break; case ConnectivityResult.none: return ConnectivityStatus.Offline; break; default: return ConnectivityStatus.Offline; } }
But It is always picking Offline code. I am attacing whole project zip in case you need.
network_sensitive (2).zip
Originally posted by @pallavbohara in https://github.com/FilledStacks/flutter-tutorials/issues/100#issuecomment-684520808