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

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

data_saver #

Package Publisher MIT License

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.16.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.16 to work.
  • If there are any issues feel free to go to GitHub Issues and report a bug.

Maintainers #

3
likes
150
pub points
40%
popularity

Publisher

verified publishernikodembernat.com

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