network_connectivity_troubleshoot 0.0.4 copy "network_connectivity_troubleshoot: ^0.0.4" to clipboard
network_connectivity_troubleshoot: ^0.0.4 copied to clipboard

outdated

A new Flutter package for network connectivity troubleshoot

This Package is useful in case the internet is not available. A bottom sheet pops up with the image and text that app is not connected with internet. A button is also available to try again.

To make this to work in your project add this addPostFrameCallback in build method of your class before your return widget tree.

{ ....

@override Widget build(BuildContext context) { WidgetsBinding.instance!.addPostFrameCallback( (_) => CheckInternetConnectivity().checkInternetAndProceed( context, title: "No Internet", buttonText: "Try Again!", ));

        ....

  }

Note: You can customize the design of bottom sheet by giving properties in checkInternetAndProceed method of this package.

2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter package for network connectivity troubleshoot

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on network_connectivity_troubleshoot