flutter_eco_mode 1.0.1 copy "flutter_eco_mode: ^1.0.1" to clipboard
flutter_eco_mode: ^1.0.1 copied to clipboard

A Flutter plugin to help implementing custom eco-friendly mode in your mobile app.

1.0.0 #

First stable release: connectivity state on iOS, safer error handling and internal cleanup

  • FEAT: Implement connectivity state (network type, Wifi signal strength) on iOS.
  • FEAT: Support multiple active listeners for connectivity events on iOS.
  • FEAT: Migrate iOS side to Swift Package Manager.
  • FIX: Change plugin interface to remove nullable return values.
  • FIX: Better error handling — PlatformExceptions are now consistently converted into typed EcoModeExceptions across the API.
  • FIX: EcoModeException and its subclasses no longer extend PlatformException; they are now standalone, sealed exception types (code/message/details) for a clearer, non-ambiguous error contract.
  • FIX: hasEnoughNetwork() now rethrows native errors instead of silently returning null, for consistency with the rest of the API.
  • FIX: Fix deadlock issue on iOS event channels.
  • FIX: Simplify event channels implementation using Pigeon.
  • FIX (iOS): Fix getEcoScore() computing an integer division, which made DeviceRange.midRange unreachable (score could only be 0.0 or 1.0).
  • FIX (iOS): Fix getPlatformInfo() returning the object's memory address (UIDevice.current description) instead of the device model/name.
  • FIX (Android): getConnectivity() no longer requires the phone-state permission for Wifi/Ethernet/no-network connectivity, only for cellular network type detection.
  • FIX (Android): PermissionHandler.onRequestPermissionsResult now correctly reports that the permission result was handled, and concurrent permission requests no longer leave a coroutine stuck forever.
  • CHORE: Replace the hand-rolled CombineLatestStream implementation with the rxdart package.
  • CHORE: Centralize native event channel names (Android/iOS) instead of duplicating them across each stream listener.
  • CHORE: Add CI job for Android build and tests, upgrade AGP.
  • CHORE: Add lefthook pre-commit hooks.

0.1.0 #

Add feature connectivity for Android devices

  • FEAT: Add feature connectivity for Android devices.

0.0.4 #

Fix unsupported event type on streaming battery state between Flutter and iOS

  • FIX: Fix unsupported event type on streaming battery state between Flutter and iOS.

0.0.3 #

Rename ecoRange deviceRange

  • FEAT: Rename ecoRange deviceRange.

0.0.2 #

Add Eco Mode Stream

  • FEAT: Add eco mode stream isBatteryEcoModeStream.

0.0.1 #

Initial release

  • FEAT: Add method to get the level of the battery getBatteryLevel().
  • FEAT: Add method that return the state of the battery getBatterySatte().
  • FEAT: Add method to check if the device is in low power mode isBatteryInLowPowerMode().
  • FEAT: Add method to get a stream of low power mode events lowPowerModeEventStream().
  • FEAT: Add method to get the current thermal state of the device getThermalState().
  • FEAT: Add method to get the number of processors getProcessorCount().
  • FEAT: Add method to get the total memory of the device getTotalMemory().
  • FEAT: Add method to get the available memory getFreeMemory().
  • FEAT: Add method to get the total storage capacity of the device getTotalStorage().
  • FEAT: Add method to get the available storage getFreeStorage().
  • FEAT: Add method to check if the device is a low-end device isLowEndDevice().
  • FEAT: Add method to get info of the device getPlatformInfo().
16
likes
155
points
403
downloads

Documentation

API reference

Publisher

verified publisherconnect-tech.sncf

Weekly Downloads

A Flutter plugin to help implementing custom eco-friendly mode in your mobile app.

Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

flutter, meta, plugin_platform_interface, rxdart

More

Packages that depend on flutter_eco_mode

Packages that implement flutter_eco_mode