flutter_heyteacher_connectivity 2.1.5+142
flutter_heyteacher_connectivity: ^2.1.5+142 copied to clipboard
The flutter heyteacher package for connectivity utilities with UI widget
flutter_heyteacher_connectivity #
A Flutter package for managing and displaying connectivity status.
Features #
- ConnectivityViewModel: Manages the connectivity state and logic.
- ConnectivityCard: A reusable widget to display connectivity status.
- Localization: Includes
FlutterHeyteacherConnectivityLocalizationsfor internationalization support.
The components in this packages are implemented following Model-View-ViewModel (MVVM) architecture and Singleton pattern.
Installation #
Add the dependency to your pubspec.yaml:
dependencies:
flutter_heyteacher_connectivity:
Usage #
Import the package and use the provided components:
import 'package:flutter_heyteacher_connectivity/connectivity.dart';
/// initialize `localizationsDelegates` with
/// `FlutterHeyteacherConnectivityLocalizations.delegate`
MaterialApp(
.
.
.
.
localizationsDelegates: const [
FlutterHeyteacherConnectivityLocalizations.delegate,
]
);
// Use the connectivity card in your widget tree
const ConnectivityCard();