https://github.com/maelchiotti/flag_secure
A Flutter plugin to manage Android's FLAG_SECURE at runtime
https://github.com/maelchiotti/flag_secure
android flag flutter plugin secure
Last synced: 4 months ago
JSON representation
A Flutter plugin to manage Android's FLAG_SECURE at runtime
- Host: GitHub
- URL: https://github.com/maelchiotti/flag_secure
- Owner: maelchiotti
- License: bsd-3-clause
- Created: 2024-07-17T12:58:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-15T18:19:06.000Z (over 1 year ago)
- Last Synced: 2026-02-17T22:33:41.317Z (4 months ago)
- Topics: android, flag, flutter, plugin, secure
- Language: Dart
- Homepage: https://pub.dev/packages/flag_secure
- Size: 29.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# flag_secure

A Flutter plugin to manage Android's FLAG_SECURE at runtime.
## Installing
See the [installing instructions](https://pub.dev/packages/flag_secure/install).
## Usage
- Get whether `FLAG_SECURE` is set:
```dart
try {
final bool? isSet = await FlagSecure.isSet;
} on PlatformException {
// Handle exception
}
```
- Set `FLAG_SECURE`:
```dart
try {
await FlagSecure.set();
} on PlatformException {
// Handle exception
}
```
- Unset `FLAG_SECURE`:
```dart
try {
await FlagSecure.unset();
} on PlatformException {
// Handle exception
}
```
## Example
See the [example app](https://pub.dev/packages/flag_secure/example).