Skip to content

Commit

Permalink
increase checkInterval time.
Browse files Browse the repository at this point in the history
  • Loading branch information
jigar-f committed Jun 25, 2024
1 parent c58707a commit 84cc1b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/common/ui/custom/internet_checker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ class InternetStatusProvider extends ChangeNotifier {

InternetStatusProvider() {
// Listen for connection status changes
_connectionSubscription =
InternetConnection().onStatusChange.listen((status) {
_connectionSubscription = InternetConnection.createInstance(
checkInterval: const Duration(seconds: 10))
.onStatusChange
.listen((status) {
if (status == InternetStatus.connected) {
_handleConnected();
} else {
Expand Down

0 comments on commit 84cc1b7

Please sign in to comment.