data_saver 0.3.0 copy "data_saver: ^0.3.0" to clipboard
data_saver: ^0.3.0 copied to clipboard

Simple Flutter plugin to check the current Data Saver/Low Data Mode.

data_saver #

Package Publisher MIT License LeanCode Style

data_saver provides a simple way of checking the current Data Saver (Android) / Low Data Mode (iOS).

Status Comments
data_saver - Tests (stable) Current stable Flutter version
data_saver - Tests (beta) Current beta Flutter version
data_saver - Tests (3.22.0) The oldest supported Flutter version

Getting started #

  1. Add this package to your dependencies.
dependencies:
  data_saver: latest_version
  1. Get the dependencies.
flutter pub get

Usage #

const dataSaver = DataSaver();

// Mode is one of the following values:
// - enabled
// - whitelisted (Android-only)
// - disabled
final mode = await dataSaver.checkMode();

Behavior on unsupported platforms #

If a particular platform is not supported by this plugin it will return DataSaverMode.disabled instead of throwing a MissingPluginException. Support for more platforms is coming soon.

Additional information #

  • This package requires at least Flutter 3.22 to work.
  • If there are any issues feel free to go to GitHub Issues and report a bug.

Maintainers #

4
likes
160
points
116
downloads

Publisher

verified publishernikodembernat.com

Weekly Downloads

Simple Flutter plugin to check the current Data Saver/Low Data Mode.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on data_saver