dxtr_box 1.2.0 copy "dxtr_box: ^1.2.0" to clipboard
dxtr_box: ^1.2.0 copied to clipboard

A fast, ACID, encrypted, Rust-powered NoSQL box database for Flutter. No model code generation.

example/lib/main.dart

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

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await BoxStore.init();
  runApp(const DxtrBoxExample());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('dxtr_box 0.7')),
        body: Center(
          child: FilledButton(
            onPressed: () async {
              final box = await BoxStore.open('demo');
              try {
                await box.put('settings', <String, dynamic>{
                  'theme': 'dark',
                  'launchCount': 1,
                });
                final value = await box.get('settings');
                debugPrint('dxtr_box settings: $value');
              } finally {
                await box.close();
              }
            },
            child: const Text('Write and read dxtr_box'),
          ),
        ),
      ),
    );
  }
}
0
likes
150
points
131
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

A fast, ACID, encrypted, Rust-powered NoSQL box database for Flutter. No model code generation.

Repository (GitHub)
View/report issues

Topics

#database #nosql #storage #rust #flutter

License

MIT (license)

Dependencies

flutter, flutter_rust_bridge, msgpack_dart, path, path_provider

More

Packages that depend on dxtr_box

Packages that implement dxtr_box