flag_secure 1.0.1 copy "flag_secure: ^1.0.1" to clipboard
flag_secure: ^1.0.1 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? enabled = await FlagSecure.isFlagSecureEnabled;
    } on PlatformException {
      // Handle exception
    }
    
  • Enable FLAG_SECURE:

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

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

Example #

See the example app.

1
likes
0
pub points
59%
popularity

Publisher

verified publishermaelchiotti.dev

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