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.

Getting Started

In your flutter project add the dependency:


For help getting started with Flutter, view the online documentation.

Usage example

import 'package:network_connectivity_troubleshoot.dart'

import 'package:network_connectivity_troubleshoot/network_connectivity_troubleshoot.dart';

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

  Widget build(BuildContext context) {
        (_) => CheckInternetConnectivity().checkInternetAndProceed(
              title: "No Internet",
              buttonText: "Try Again!",



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