grimoire 1.0.1
grimoire: ^1.0.1 copied to clipboard
Calibre-style Flutter ebook reader built on Unseal, with paginated or scrolling layouts, navigation, search, bookmarks, highlights, themes, and text selection hooks.
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'grimoire_example_app.dart';
import 'src/di/providers.dart';
import 'src/infrastructure/database/demo_store.dart';
import 'src/infrastructure/parsing_worker_bootstrap_stub.dart'
if (dart.library.js_interop) 'src/infrastructure/parsing_worker_bootstrap.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
bootstrapParsingWorker();
// Host-owned persistence: the library never touches storage; the
// demo app owns this ObjectBox store and exposes it through DI.
final store = await DemoStore.open();
runApp(
ProviderScope(
overrides: [demoStoreProvider.overrideWithValue(store)],
child: const GrimoireExampleApp(),
),
);
}