net_checker 0.0.7
net_checker: ^0.0.7 copied to clipboard
A lightweight Flutter package to check internet connectivity, monitor connection changes, measure latency, and detect network quality.
0.0.7 #
Major stability, performance, and cross-platform compatibility release.
Added #
- WebAssembly (Wasm) support for modern Flutter Web using
dart.library.js_interop - Strongly-typed
NetworkQualityLevelenum with label and theme color mappings - Convenience getters
isConnectedandisDisconnectedonConnectionStatus - Broadcast stream support to allow multiple listeners and widgets simultaneously
- Immediate status emission on stream subscription (even when starting offline)
streamandinitialStatusparameters in status widgets for mock testing- Smooth animated transitions and custom icon support in
NoInternetBanner - Comprehensive unit and widget test suite
Improved #
- Upgraded SDK constraint to support modern Flutter (3.19+) and Dart (3.3.0+)
- Switched default ping endpoints to reliable captive-portal detection hosts
- Improved socket and
HttpClientlifecycle with guaranteed closure on errors - Removed unused
httpdependency to minimize package footprint - Updated example application and added Android INTERNET permissions
Fixed #
- Fixed stream recreation and timer memory leaks on widget rebuilds
- Fixed missing initial event when starting app without an internet connection
- Fixed HTTP request timeout issues caused by raw IP DNS hosts
0.0.5 #
Refinement release with improved Web behavior and example app updates.
Added #
- Device/platform information in example app
Improved #
- Improved example app to handle connection state more reliably
- Better handling of loading, retry, and disconnected states in UI
Fixed #
- Fixed Web connectivity inconsistencies in example usage
- Fixed cases where connection state could appear incorrect on initial load
Notes #
- Web platform behavior depends on browser limitations (CORS, network state)
- No major changes to core package APIs
0.0.3 #
Improved release of net_checker with cross-platform support and documentation improvements.
Added #
- Web platform support
- Conditional platform implementation for IO and Web
- HTTP-based connectivity check for Web
- Platform support declaration in pubspec.yaml
Improved #
- Added DartDoc documentation for public APIs
- Improved README documentation and usage examples
- Improved package structure for better platform compatibility
Fixed #
- Resolved pub.dev documentation coverage warning
- Improved package metadata and platform detection
0.0.2 #
Initial stable release of net_checker.
Added #
- Internet connectivity check
- Custom host configuration support
- Real-time connection monitoring stream
- Network latency measurement
- Network quality detection
- Configurable timeout and check interval
- Internet status indicator widget
- Internet status builder widget
- No internet banner widget
- Example application