get_radio_version_plugin 1.0.0 copy "get_radio_version_plugin: ^1.0.0" to clipboard
get_radio_version_plugin: ^1.0.0 copied to clipboard

PlatformAndroid

A plugin to get radio version from native code (Android).

get_radio_version_plugin #

A plugin to get radio version from native code (Android).

Features #

  • get the radioVersion

Getting started #

To use this package, add get_radio_version_plugin as a dependency in your pubspec.yaml file.

Usage #

Example:

Declare variable:


    String _radioVersion = 'Unknown';

Create Function initradioVersionState:


    Future<void> initRadioVersionState() async {
        String radioVersion;
        try {

          radioVersion = await GetRadioVersionPlugin.radioVersion ?? 'Unknown radio version';

        } on PlatformException {

          radioVersion = 'Failed to get radio version.';

        }
        if (!mounted) return;

        setState(() {
          _radioVersion = radioVersion;
        });
    }

Call into initState:


    void initState() {
      super.initState();
      initRadioVersionState();
    }

4
likes
140
points
145
downloads

Publisher

unverified uploader

Weekly Downloads

A plugin to get radio version from native code (Android).

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on get_radio_version_plugin