Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dreamsoftin/obscured_preferences

Flutter Obscured Preferences
https://github.com/dreamsoftin/obscured_preferences

Last synced: about 2 months ago
JSON representation

Flutter Obscured Preferences

Awesome Lists containing this project

README

        

# obscured_preferences

This package makes use of [shared_preferences](https://pub.dartlang.org/packages/shared_preferences) and [encrypt](https://pub.dartlang.org/packages/encrypt) packages to provide encrypted shared preferences.

## Usage

The syntax and usage of this package is the same as that of [shared_preferences](https://pub.dartlang.org/packages/shared_preferences).

```dart
import 'package:flutter/material.dart';
import 'package:obscured_preferences/obscured_preferences.dart';

void savePrefs() async {

ObscuredPrefs prefs = await ObscuredPrefs.getInstance();

await prefs.setString('key', 'Hello World!');

final strValue = prefs.getString('key');
}
```