Serge Middendorf
ย ยทย FlutterFlow Guru and Moderator, Head of Dev @Middnight

Check InternetConnection

This custom action provides useful to check if connected to the internet. Works reliably. Use e.g. to check if Internet is connected before trying to send data, upload stuff, backend or API call. Use in the first Position of actions, give it an action output and then rely on the boolean from action number 2 onwards ๐Ÿ‘

 
CUSTOM ACTION
return Boolean, SINGLE
no parameters

Require Pub Dev Dependency:
internet_connection_checker: ^0.0.1Code Snippet:
import 'package:internet_connection_checker/internet_connection_checker.dart';

Future checkInternetConnection() async {
  bool result = await InternetConnectionChecker().hasConnection;
  return result;
}  
7
42 replies