internet_checker_banner 0.0.5 copy "internet_checker_banner: ^0.0.5" to clipboard
internet_checker_banner: ^0.0.5 copied to clipboard

Display a MaterialBanner when your internet connection is unavailable.

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.

16
likes
70
pub points
65%
popularity

Publisher

unverified uploader

Display a MaterialBanner when your internet connection is unavailable.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter, internet_connection_checker

More

Packages that depend on internet_checker_banner