Skip to content

Commit

Permalink
Merge pull request #9 from MAlazhariy/versions/v1.6.0
Browse files Browse the repository at this point in the history
Versions/v1.6.0
  • Loading branch information
MAlazhariy authored Oct 7, 2024
2 parents c3bb059 + 934e516 commit 067fd36
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## [1.6.0]
## [1.6.1]

### Added
- Change `checkConnection` return type to `Future<bool>` to return if connection is available or not.
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.6.0
ref: v1.6.1
```
#### Android Configuration
Expand Down
2 changes: 1 addition & 1 deletion lib/src/utils/extensions/context_extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ 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> internetCheck() => read<InternetManagerCubit>().checkConnection();
Future<bool> internetCheck() => read<InternetManagerCubit>().checkConnection();
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A Flutter package for seamless internet connection management. Auto
author: MAlazhariy
homepage: https://github.com/MAlazhariy/internet_state_manager
issue_tracker: https://github.com/MAlazhariy/internet_state_manager/issues
version: 1.6.0
version: 1.6.1

environment:
sdk: '>=3.1.2 <4.0.0'
Expand Down

0 comments on commit 067fd36

Please sign in to comment.