easy_internet_checker 0.0.2 copy "easy_internet_checker: ^0.0.2" to clipboard
easy_internet_checker: ^0.0.2 copied to clipboard

This project help with network connectivity and configure themselves accordingly. It can distinguish between cellular vs WiFi connection.

This package help with network connectivity and configure themselves accordingly. It can distinguish between cellular vs WiFi connection as shown below.

Features #

  • Check network connectivity.
  • Customize the offline widget.
  • Disable Interaction option while device is offline.

Getting started #

you need to import the package into your project and wrap the widget with ConnectivityWrapper widget.

Usage #

TODO: You can find the code snippet in to /example folder project.

ConnectivityWrapper(
        disableInteraction: true,
        offlineWidgetTextAlign: TextAlign.center,
        offlineWidgetColor: Colors.amber,
        offlineWidgetMessageStyle:
            const TextStyle(color: Colors.black54, fontSize: 18),
        containerAlignment: Alignment.topCenter,
        child: Center(
          child: ElevatedButton(
            onPressed: () {
              print('Pressed');
            },
            child: const Text('submit'),
          ),
        ),
      );
0
likes
130
pub points
0%
popularity

Publisher

unverified uploader

This project help with network connectivity and configure themselves accordingly. It can distinguish between cellular vs WiFi connection.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (LICENSE)

Dependencies

connectivity_plus, flutter, provider

More

Packages that depend on easy_internet_checker