Skip to content

Commit

Permalink
[update] docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MAlazhariy committed Sep 14, 2024
1 parent c0dda9b commit 761620e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [1.4.0]

### Added
- `internetCheck` context extension to allow to check internet form context extension.

---

## [1.3.1]

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Add the package to your `pubspec.yaml` under `dependencies:`:
internet_state_manager:
git:
url: https://github.com/MAlazhariy/internet_state_manager.git
ref: v1.3.1
ref: v1.4.0
```
#### Android Configuration
Expand Down
1 change: 0 additions & 1 deletion lib/src/utils/extensions/context_extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ extension ConncectionStatus on BuildContext {
///
/// You can use this stream logic directly on your code to listen to
/// internet connection changes only (**without listening to loading states**)
Stream<InternetState> get internetStateStream => read<InternetManagerCubit>().internetStateStream;
Future<void> get internetCheck => read<InternetManagerCubit>().checkConnection();
}

0 comments on commit 761620e

Please sign in to comment.