network_aware_ui 0.1.0
network_aware_ui: ^0.1.0 copied to clipboard
A lightweight, reactive Flutter package to monitor network connectivity, verify internet reachability, and render customizable offline UI states.
0.1.0 #
- Phase 1 (Foundation):
- Added core network state models:
NetworkStatus,NetworkConnectionType, andNetworkState. - Configured package metadata, SDK constraints, and library entry point.
- Added core network state models:
- Phase 2 (Connectivity Manager):
- Added
connectivity_plusintegration with exhaustive mapping of all connection types includingsatellite. - Implemented
NetworkMonitorwith deduplicatedonStateChangedbroadcast stream and app lifecycle awareness.
- Added
- Phase 3 (Internet Reachability):
- Implemented
InternetCheckerwith socket-level probing (Google DNS, Cloudflare DNS, OpenDNS). - Added target fallback, timeout handling, probe result caching, and in-flight request deduplication.
- Integrated
InternetCheckerintoNetworkMonitorto distinguish interface connection from actual internet reachability (e.g. detecting captive portals, dead uplinks). - Added short-circuiting when disconnected to prevent wasteful network requests.
- Implemented
- Phase 4 (UI Components):
- Added
NetworkAwaresingleton facade (NetworkAware.instance.onStatusChanged,currentState,isOnline). - Implemented
NetworkAwareBuilderwith support for generalbuilderas well as dedicatedonlineBuilder,offlineBuilder,checkingBuilder, and animated transitions. - Implemented
NetworkAwareBannerwith smooth slide/fade animations, top/bottom positioning, offline warning, and optional auto-dismissing "Back online" confirmation. - Implemented
OfflineWidgetwith customizable title, message, icon, retry action, and built-in loading indicator for async retry operations.
- Added
- Phase 4 (UI Components):
- Added
NetworkAwaresingleton facade (NetworkAware.instance.onStatusChanged,currentState,isOnline). - Implemented
NetworkAwareBuilderwith support for generalbuilderas well as dedicatedonlineBuilder,offlineBuilder,checkingBuilder, and animated transitions. - Implemented
NetworkAwareBannerwith smooth slide/fade animations, top/bottom positioning, offline warning, and optional auto-dismissing "Back online" confirmation. - Implemented
OfflineWidgetwith customizable title, message, icon, retry action, and built-in loading indicator for async retry operations.
- Added