network_checker_plus 1.0.3 copy "network_checker_plus: ^1.0.3" to clipboard
network_checker_plus: ^1.0.3 copied to clipboard

A Flutter plugin to check network connectivity, type, and more.

πŸ“‘ network_checker_plus #

Pub Version Platform Support License: MIT

A lightweight and efficient Flutter plugin to check the network status of the device. Easily determine whether the user is connected to the internet and what type of network they’re using β€” Wi-Fi, mobile data, or none.


✨ Features #

βœ… Check if the device is connected to the internet
βœ… Detect the type of connection (Wi-Fi, Mobile, or None)
πŸ”„ (Coming soon) Estimate network speed (e.g., ping a server or download a small file)
πŸ“Ά (Coming soon) Measure signal strength (Wi-Fi or mobile)
⏱ (Coming soon) Real-time stream of connectivity and signal strength changes


πŸš€ Getting Started #

1️⃣ Add Dependency #

Add this to your pubspec.yaml:

dependencies:
  network_checker_plus: ^1.0.0

Then run:

flutter pub get

2️⃣ Import the Package #

import 'package:network_checker_plus/network_checker_plus.dart';

πŸ” Usage #

βœ… Check Internet Status #

final bool isConnected = await NetworkCheckerPlus.isConnected();
print('Connected: $isConnected');

πŸ“‘ Get Connection Type #

final String type = await NetworkCheckerPlus.getConnectionType();
print('Connection Type: $type');

Possible values:

  • 'wifi'
  • 'mobile'
  • 'none'
  • 'unknown'

πŸ›‘ Permissions #

πŸ“± Android #

Make sure you add the following permission in android/app/src/main/AndroidManifest.xml:

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

(Coming soon features may require additional permissions such as ACCESS_WIFI_STATE and ACCESS_FINE_LOCATION.)


πŸ§ͺ Example #

Clone this repo and run the example app to see it in action:

cd example
flutter run

πŸ’‘ Roadmap #

  • βœ… Check network connection
  • βœ… Detect connection type (Wi-Fi or Mobile)
  • ❌ Check basic network speed
  • ❌ Measure signal strength (Wi-Fi/Mobile)
  • ❌ Real-time listener for network changes

πŸ‘₯ Contributing #

We welcome contributions! Whether it’s bug reports, feature requests, documentation, or code β€” all are appreciated.

  1. Fork the repo
  2. Create your feature branch: git checkout -b feature/my-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin feature/my-feature
  5. Open a pull request

πŸ“„ License #

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ’¬ Support #

If you find this plugin helpful, please consider giving it a ⭐ on GitHub and sharing it with other Flutter developers!

Questions? Suggestions? Open an issue


Made with ❀️ for Flutter developers.

2
likes
0
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to check network connectivity, type, and more.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on network_checker_plus

Packages that implement network_checker_plus