s_connectivity 2.0.0
s_connectivity: ^2.0.0 copied to clipboard
A small Flutter utility package to detect Internet connectivity changes and show ready‑to‑use offline UI components
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
2.0.0 #
- package no longer holds the source code for it, but exports/exposes the
s_packagespackage instead, which will hold this package's latest source code. - The only future changes to this package will be made via
s_packagespackage dependency upgrades, in order to bring the new fixes or changes to this package - dependent on
s_packages: ^1.1.2
1.0.1 #
- README updated
1.0.0 - 2026-01-13 #
Added #
- Initial release of
s_connectivity. AppInternetConnectivitystatic API:initialiseInternetConnectivityListener(...)to start listening.isConnectedsynchronous getter.listenable(ValueListenable<bool>) for UI state (recommended).emitCurrentStateNow()to emit callbacks for the currently known state.hardReset()to clear listeners/state (useful for Flutter Web hot restart).disposeInternetConnectivityListener()to clean up.
- Ready-to-use offline UI widgets:
NoInternetWidget(small indicator widget).NoInternetConnectionPopup(full-screen overlay).
Notes #
emitInitialStatus: trueemits the currently known state immediately; it does not perform an actual network probe.