Display a MaterialBanner when your internet connection is unavailable.

Features

internet_checker_banner display a MaterialBanner when your Internet connection is bad or unavailable, and close it otherwise. The plugin determine if the device is currently connected to the global network (has access to the Internet).

Screenshot

Getting started

TODO: List prerequisites and provide or point to information on how to start using the package.

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
    dependencies:
      internet_checker_banner: ^0.0.4
  1. Import the package and use it in your Flutter App.
    import 'package:internet_checker_banner/internet_checker_banner.dart';

Usage

Initialize internet_checker_banner inside the initState() function.

    InternetCheckerBanner().initialize(
      context,
      title: "No internet access",
    );

don't forget to dispose it inside dispose() function.

    InternetCheckerBanner().dispose();

See example folder for more examples.

Libraries

internet_checker_banner