flag_secure 2.0.0 copy "flag_secure: ^2.0.0" to clipboard
flag_secure: ^2.0.0 copied to clipboard

A Flutter plugin to manage Android's FLAG_SECURE at runtime.

flag_secure #

Pub Version

A Flutter plugin to manage Android's FLAG_SECURE at runtime.

Installing #

See the installing instructions.

Usage #

  • Get whether FLAG_SECURE is set:

    try {
      final bool? isSet = await FlagSecure.isSet;
    } on PlatformException {
      // Handle exception
    }
    
  • Set FLAG_SECURE:

    try {
      await FlagSecure.set();
    } on PlatformException {
      // Handle exception
    }
    
  • Unset FLAG_SECURE:

    try {
      await FlagSecure.unset();
    } on PlatformException {
      // Handle exception
    }
    

Example #

See the example app.

3
likes
0
points
3.52k
downloads

Publisher

verified publishermaelchiotti.dev

Weekly Downloads

A Flutter plugin to manage Android's FLAG_SECURE at runtime.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flag_secure

Packages that implement flag_secure