network_info 1.0.2 copy "network_info: ^1.0.2" to clipboard
network_info: ^1.0.2 copied to clipboard

A standalone Flutter package for retrieving network information (public and local IP addresses)

Changelog #

All notable changes to this project will be documented in this file.

1.0.2 - 2025-10-23 #

Fixed #

  • Fixed an issue with the library directive and exports in network_info.dart
  • Removed direct dependency on network_info_di.dart from the main library file

The format is based on Keep a Changelog, and this project adheres to semantic Versioning.

1.0.1 - 2025-01-24 #

Changed #

  • Updated GitHub repository URLs
  • Enhanced documentation with comparison table
  • Improved README structure and content

1.0.0 - 2025-01-23 #

Added #

  • Initial release of network_info package by Sepehr Tabeian
  • Public IP address retrieval with multiple fallback services
  • Local IP address retrieval (LAN/Wi-Fi)
  • Network connectivity checking
  • Clean Architecture implementation
  • SOLID principles adherence
  • Comprehensive test suite (100+ tests)
  • Dependency injection support with GetIt
  • Configurable timeout and retry logic
  • Graceful error handling and degradation
  • Full null safety support
  • Example application
  • Comprehensive documentation

Features #

  • PublicIpDataSource: Retrieves public IP with fallback services
  • LocalIpDataSource: Retrieves local network IP
  • ConnectivityDataSource: Checks network connectivity status
  • NetworkInfoRepository: Unified interface for all network info
  • NetworkInfoModel: Immutable model for network information
  • NetworkInfoConfig: Configurable settings
  • NetworkInfoDI: Dependency injection setup

Design Patterns #

  • Repository Pattern
  • Dependency Injection Pattern
  • Strategy Pattern (multiple IP services)
  • Factory Pattern (configuration)
  • Singleton Pattern (via GetIt)

Testing #

  • Unit tests for all components
  • Mock-based testing with mockito
  • Integration tests
  • 100+ test cases
  • High code coverage

Documentation #

  • README with quick start guide
  • ARCHITECTURE.md with detailed design
  • Example application
  • Inline code documentation
  • CHANGELOG
2
likes
150
points
22
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A standalone Flutter package for retrieving network information (public and local IP addresses)

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

connectivity_plus, flutter, get_it, http

More

Packages that depend on network_info