netstatus 0.1.2
netstatus: ^0.1.2 copied to clipboard
Unified network + real internet status Stream with configurable checks, multi-platform, pure Dart Streams.
0.1.2 #
Fixes #
- Applied
dart format
to align with pub.flutter-io.cn formatter checks (no functional changes).
0.1.1 #
Improvements #
- Added comprehensive dartdoc for public API (enums, config fields, service methods) to improve pub score and developer experience.
- Fixed dangling library doc by adding
library netstatus;
and top-level docs on the public export. - Updated
issue_tracker
in pubspec to a reachable URL.
No runtime behavior changes; API remains backward compatible.
0.1.0 #
Initial Release
Features #
- π Unified Status Stream: Single
Stream<NetStatus>
withnoNetwork
,networkOnly
,internet
- π Connection Type Detection:
NetType
classification (wifi, mobile, ethernet, vpn, unknown) - βοΈ Highly Configurable: Ping URLs, timeouts, retries, throttling, backoff
- π Multi-Platform: Android, iOS, Web (with WASM), Windows, macOS, Linux
- π Smart Fallbacks: DNS fallback, image-ping for Web CORS, HEADβGET fallback
- π Energy Efficient: Intelligent throttling, trailing recheck, periodic validation
- π Developer Friendly: Logging hooks, error capture, immediate status access
Platform Support #
- β Android (with required permissions)
- β iOS
- β Web (CORS-aware with fallbacks, WASM compatible)
- β Windows
- β macOS
- β Linux
Dependencies #
connectivity_plus: ^6.0.5
- Network state detectionhttp: ^1.2.2
- HTTP connectivity checksweb: ^1.1.0
- Modern web APIs (replaces deprecated dart:html)meta: ^1.16.0
- Annotations