Flutter Check whether there is an Internet connection available or not
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
first install this package connectivity
Run this command:
With Flutter:
$ flutter pub add connectivity
Import it
Now in your Dart code, you can use:
import 'package:connectivity/connectivity.dart';