grimoire 1.0.0
grimoire: ^1.0.0 copied to clipboard
Calibre-style ebook reader for Flutter built on Unseal. Renders EPUB, MOBI, AZW3, FB2/FBZ, TXT/TXZ, HTML/HTMLZ, DOCX, AZW4, CBZ/CBR/CB7/CBC, ODT and PDF with paginated layouts, themes, table of conten [...]
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(),
),
);
}