Skip to content
pubscout

flutter_eco_mode

1.0.1, released 5 months ago by connect-tech.sncf

Plugin to determine device capacities, low-end status, battery eco mode, and connectivity.

WASM-ready
$ flutter pub add flutter_eco_mode
Source repository

What it does

Evaluates hardware information, battery state, thermal state, and network connectivity to help implement custom eco-friendly power-saving modes in mobile apps.

AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to detect low-end devices or battery eco modes to reduce app resource consumption
  • You need detailed platform hardware, storage, memory, and connectivity info on Android and iOS

Skip it when

  • You only need standard device information handled better by alternative packages like device_info_plus
  • You require support for desktop or web platforms

Strengths

  • Provides aggregated device range and battery eco-mode streams out of the box
  • Typed custom exceptions replace generic platform exceptions
  • Supports both Android and iOS platforms

Weaknesses

  • Limited platform support (Android and iOS only)
  • Some network connectivity checks may require optional native runtime permissions on Android

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
3

Cellular network type detection on Android may require appropriate permissions.

try {
  final connectivity = await FlutterEcoMode.instance.getConnectivity();
} on EcoModePermissionDeniedException catch (e) {
  // handle missing permission
} on EcoModeException catch (e) {
  // handle other typed errors
}

Alternatives

Packages that do the same job and could replace flutter_eco_mode.

Works with

Packages commonly used together with flutter_eco_mode: ones it builds on, ones built on it, and its own family.