network_aware_ui library

A lightweight, reactive Flutter package to monitor network connectivity, verify internet reachability, and build offline-aware UI states.

Classes

InternetChecker
Service that evaluates end-to-end internet reachability by probing remote targets.
InternetCheckOptions
Configuration options for InternetChecker.
InternetCheckTarget
Defines a network target host and port used to test internet reachability.
NetworkAware
Central singleton entrypoint and coordinator for network awareness in Flutter applications.
NetworkAwareBanner
A non-intrusive banner overlay that animates into view when the device goes offline.
NetworkAwareBuilder
A reactive widget that listens to network state changes and rebuilds its UI.
NetworkMonitor
Monitors network interface changes, verifies real internet reachability, and exposes a reactive stream of NetworkState snapshots.
NetworkState
Represents an immutable snapshot of the network and internet connectivity state.
OfflineWidget
A configurable offline placeholder screen or card.

Enums

BannerPosition
The screen edge where the network banner appears.
NetworkConnectionType
The physical or logical transport mechanism used by a network interface.
NetworkStatus
Represents the high-level reachability status of a network connection.

Typedefs

NetworkWidgetBuilder = Widget Function(BuildContext context, NetworkState state)
Signature for building a widget tree based on the current NetworkState.
SocketProbe = Future<bool> Function(InternetCheckTarget target)
Signature for a function that probes whether an InternetCheckTarget is reachable.