diff --git a/CHANGELOG.md b/CHANGELOG.md index 67a9e97..5eec925 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.0.2 +- Update connectivity_plus package to ^6.0.3 +- Update easy_localization package to ^3.0.7 + ## 2.0.1 - Extend delimiters for csv loader diff --git a/lib/src/smart_network_asset_loader.dart b/lib/src/smart_network_asset_loader.dart index 315dabe..8bf2a3a 100644 --- a/lib/src/smart_network_asset_loader.dart +++ b/lib/src/smart_network_asset_loader.dart @@ -66,7 +66,7 @@ class SmartNetworkAssetLoader extends AssetLoader { Future isInternetConnectionAvailable() async { final connectivityResult = await Connectivity().checkConnectivity(); - if (connectivityResult == ConnectivityResult.none) { + if (connectivityResult.contains(ConnectivityResult.none)) { return false; } else { try { diff --git a/pubspec.yaml b/pubspec.yaml index fa54fa9..5aa1389 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,15 +4,15 @@ description: Easy Localization Loader custom assets loaders for easy_localizatio homepage: https://github.com/aissat/easy_localization_loader issue_tracker: https://github.com/aissat/easy_localization_loader/issues -version: 2.0.1 +version: 2.0.2 environment: sdk: '>=2.12.0 <4.0.0' dependencies: - connectivity_plus: ^5.0.1 + connectivity_plus: ^6.0.3 csv: ^6.0.0 - easy_localization: ^3.0.3 + easy_localization: ^3.0.7 flutter: { sdk: flutter } http: ^1.1.0 path_provider: ^2.1.1