flutter_connectivity_service 2.1.0
flutter_connectivity_service: ^2.1.0 copied to clipboard
A comprehensive Flutter package for managing network connectivity with real-time monitoring, automatic reconnection, and user-friendly snackbar notifications.
Flutter Connectivity Service #
A comprehensive Flutter package for managing network connectivity with real-time monitoring, automatic reconnection detection, and user-friendly snackbar notifications.
Features #
- 🔄 Real-time connectivity monitoring
- 📱 Automatic snackbar notifications for connection changes
- 🎨 Customizable UI components and messages
- 🚀 GetX integration for reactive state management
- 📶 Support for WiFi and mobile data detection
- ⚡ Lightweight and efficient
- 🛡️ Graceful error handling
- 🎯 Easy to integrate and use
How to use this package,see below #
Add these two lines in main(). #
WidgetsFlutterBinding.ensureInitialized() and Get.put(ConnectionServices()); just below void main() #
see below #
void main() {
WidgetsFlutterBinding.ensureInitialized();
Get.put(ConnectionServices());
runApp(const MyApp());
}
see given image below to use this package #
...
Example #
See the image below to use this package:
! flutter_connectivity_service.png (imgs/pic.png)
I don't need any coffee,just do your code and have fun 😊 #
Callbacks #
Installation #
Add this to your package's pubspec.yaml file:
dependencies:
flutter_connectivity_service: ^2.1.0