flml_internet_checker 1.0.0 copy "flml_internet_checker: ^1.0.0" to clipboard
flml_internet_checker: ^1.0.0 copied to clipboard

This package aims to check internet connection by just wrapping the widget with InternetChecker Widget without using any function calls inside your app"

Internet connectivity checking package. #

A Flutter package to check your internet connection by just wrapping the Scaffold with InternetChecker Widget.


Permissions #

Android #

Add the following permissions to your AndroidManifest.xml file:

<uses-permission android:name="android.permission.INTERNET" />
copied to clipboard

macOS #

Add the following permissions to your macOS .entitlements files:

<key>com.apple.security.network.client</key>
<true/>
copied to clipboard

Usage #

1. Add dependency #

Add the flml_internet_checker package to your pubspec.yaml file:

dependencies:
  flml_internet_checker: ^1.0.0
copied to clipboard

2. Import the package #

Import the flml_internet_checker package into your Dart file:

import 'package:flml_internet_checker/flml_internet_checker.dart';
copied to clipboard

Example #

InternetChecker(
      placeHolder: Lottie.asset(
        "assets/no_internet.json",
        height: 250,
      ),
      internetConnectionText: "No Internet Connection",
      child: const Scaffold(
        body: Center(
          child: Text("You are Online"),
        ),
      ),
    );
copied to clipboard

Credits #

This package is a cloned and modified version of the internet_connection_checker_plus package.

The aim of this package is just to check the internet connectivity without putting the functions into the project and just wrap the widget with InternetChecker Widget.

39
likes
160
points
63
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.23 - 2025.04.07

This package aims to check internet connection by just wrapping the widget with InternetChecker Widget without using any function calls inside your app"

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, internet_connection_checker_plus

More

Packages that depend on flml_internet_checker