stow_secure 0.5.1 copy "stow_secure: ^0.5.1" to clipboard
stow_secure: ^0.5.1 copied to clipboard

A Stow package to store encrypted data in flutter_secure_storage.

example/main.dart

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

final stows = Stows();

class Stows {
  final count = SecureStow.int('count', 0);
  // ... add more stows as needed
}

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: ValueListenableBuilder(
            valueListenable: stows.count,
            builder: (context, value, child) {
              return Text('Count: $value');
            },
          ),
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: () => stows.count.value++,
          tooltip: 'Increment',
          child: Icon(Icons.add),
        ),
      ),
    );
  }
}