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

A Dart package providing an isolated box for the Hive database, enabling cross-isolate usage.

example/lib/main.dart

import 'package:example/page.dart';
import 'package:flutter/material.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Isolated Box Example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}
0
likes
160
points
73
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart package providing an isolated box for the Hive database, enabling cross-isolate usage.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, hive, path_provider

More

Packages that depend on isolated_box