global_network 0.0.1 copy "global_network: ^0.0.1" to clipboard
global_network: ^0.0.1 copied to clipboard

outdated

This is a package which can be used to implement network connectivity globally within an app.

global_network #

This package provides a GlobalNetwork widget that can be used to display a network error screen when app in offline mode.

Now you don't need to implement connection checks on different screens just use this package & let the app user know about the connection issues.

Dependencies #

In pubspec.yaml use global_network as dependency to use this package

dependencies:
  global_network: <package_version>

How to Use? #

  • After adding dependency in pubspec.yaml import it
import 'package:global_network/global_network.dart';

  • Now you all setup to use this package just wrap your widget with new widget GlobalNetwork in order to display Internet connection error / warning screen.
GlobalNetwork(
      child: Scaffold(
        appBar: AppBar(title: Text("Global Network")),
        body: Center(child: Text("Network Connection Available")),
      ),
    );
  • Hurray!!!! You screen is now network sensitive whenver you lost internet connectivity an warning screen will be display.
  • Wrap only those widgets where you need to show "connection screen"

How screen look after using this? #

Contributions #

Found any bug? Wants to add or suggest something new ideas ? #

  • Fork the repo
  • Fix the bug / add new features
  • Commit your changes to new branch
  • Push the changes
  • Create a pull request

Upcoming Features #

  • Customisable "no connection screen " as per our requirements.
  • Able to display bottomsheet inspite of full screen

Please don't forget to star this repo. #

More star means more support. #

12
likes
0
pub points
0%
popularity

Publisher

unverified uploader

This is a package which can be used to implement network connectivity globally within an app.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

connectivity, flutter, provider

More

Packages that depend on global_network