Skip to content

Repo for a Flutter package that enables your flutter apps to be network aware. It overlays a widget over your app when internet connection is off. You can choose to allow users interact/dismiss the prompt or block all interactions.

License

Notifications You must be signed in to change notification settings

asapJ/network_aware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

network_aware

A Flutter package that enables your flutter apps to be network aware. It overlays a widget over your app when internet connection is off. You can choose to allow users interact/dismiss the prompt or block all interactions.

Compatibility

Android and IOS

Usage

Add import statement

    import 'package:network_aware/network_aware.dart';
    

Wrap your root MaterialApp in a [NetworkAware] Widget

    NetworkAware(
      canDismiss: true,
      position: NetworkAwarePosition.TOP, 
      indicatorWidget: IndicatorWidget(), 
      child: MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
          visualDensity: VisualDensity.adaptivePlatformDensity,
        ),
        home: MyHomePage(title: 'NetworkAware Test'),
      ),
    );


//For full example, visit the example app repo

About

Repo for a Flutter package that enables your flutter apps to be network aware. It overlays a widget over your app when internet connection is off. You can choose to allow users interact/dismiss the prompt or block all interactions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published