Skip to content

Commit

Permalink
allowed bluetooth connectivity for intercubit
Browse files Browse the repository at this point in the history
  • Loading branch information
HemantKArya committed Sep 28, 2024
1 parent 87c9f61 commit 68a19bb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ class ConnectivityCubit extends Cubit<ConnectivityState> {
StreamSubscription<ConnectivityResult>? _subscription;
ConnectivityCubit() : super(ConnectivityState.disconnected) {
_subscription = Connectivity().onConnectivityChanged.listen((event) {
if (event == ConnectivityResult.none ||
event == ConnectivityResult.bluetooth) {
if (event == ConnectivityResult.none) {
emit(ConnectivityState.disconnected);
} else {
emit(ConnectivityState.connected);
Expand Down

0 comments on commit 68a19bb

Please sign in to comment.