data_saver 0.1.0+3 copy "data_saver: ^0.1.0+3" to clipboard
data_saver: ^0.1.0+3 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 #

4
likes
0
pub points
51%
popularity

Publisher

verified publishernikodembernat.com

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on data_saver