encrypt_shared_pref 0.0.1 encrypt_shared_pref: ^0.0.1 copied to clipboard
Simple to use yet powerful package to encrypt shared preferences in android iOS and web.
import 'package:encrypt_shared_pref/encrypt_shared_pref.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Encrypted Shared Pref Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: SaveDataView(),
);
}
}
copied to clipboard