flutter_native_secure_storage 1.0.2 copy "flutter_native_secure_storage: ^1.0.2" to clipboard
flutter_native_secure_storage: ^1.0.2 copied to clipboard

Flutter plugin to store data in secure storage on Android and iOS.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_native_secure_storage/flutter_native_secure_storage.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Secure Storage Demo')),
        body: Center(
          child: ElevatedButton(
            onPressed: () async {
              await SecureStorage.write('token', 'abc123');
              final token = await SecureStorage.read('token');
              debugPrint('Token: $token');
            },
            child: const Text('Test Secure Storage'),
          ),
        ),
      ),
    );
  }
}
1
likes
160
points
89
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin to store data in secure storage on Android and iOS.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_native_secure_storage

Packages that implement flutter_native_secure_storage