Skip to main content

network_aware_ui 0.1.0 copy "network_aware_ui: ^0.1.0" to clipboard
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, and NetworkState.
    • Configured package metadata, SDK constraints, and library entry point.
  • Phase 2 (Connectivity Manager):
    • Added connectivity_plus integration with exhaustive mapping of all connection types including satellite.
    • Implemented NetworkMonitor with deduplicated onStateChanged broadcast stream and app lifecycle awareness.
  • Phase 3 (Internet Reachability):
    • Implemented InternetChecker with socket-level probing (Google DNS, Cloudflare DNS, OpenDNS).
    • Added target fallback, timeout handling, probe result caching, and in-flight request deduplication.
    • Integrated InternetChecker into NetworkMonitor to distinguish interface connection from actual internet reachability (e.g. detecting captive portals, dead uplinks).
    • Added short-circuiting when disconnected to prevent wasteful network requests.
  • Phase 4 (UI Components):
    • Added NetworkAware singleton facade (NetworkAware.instance.onStatusChanged, currentState, isOnline).
    • Implemented NetworkAwareBuilder with support for general builder as well as dedicated onlineBuilder, offlineBuilder, checkingBuilder, and animated transitions.
    • Implemented NetworkAwareBanner with smooth slide/fade animations, top/bottom positioning, offline warning, and optional auto-dismissing "Back online" confirmation.
    • Implemented OfflineWidget with customizable title, message, icon, retry action, and built-in loading indicator for async retry operations.
  • Phase 4 (UI Components):
    • Added NetworkAware singleton facade (NetworkAware.instance.onStatusChanged, currentState, isOnline).
    • Implemented NetworkAwareBuilder with support for general builder as well as dedicated onlineBuilder, offlineBuilder, checkingBuilder, and animated transitions.
    • Implemented NetworkAwareBanner with smooth slide/fade animations, top/bottom positioning, offline warning, and optional auto-dismissing "Back online" confirmation.
    • Implemented OfflineWidget with customizable title, message, icon, retry action, and built-in loading indicator for async retry operations.
1
likes
160
points
156
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight, reactive Flutter package to monitor network connectivity, verify internet reachability, and render customizable offline UI states.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

connectivity_plus, flutter

More

Packages that depend on network_aware_ui