youscribe_epub_reader (1.1.0)
Published 2026-05-28 12:45:37 +00:00 by hugo
Installation
dart pub add youscribe_epub_reader:1.1.0 --hosted-url=About this package
A Flutter package that exposes a clean EPUB reader API surface.
youscribe_epub_reader
Base EPUB reader package aligned with the youscribe_pdf_reader patterns.
The public API intentionally stays small:
EpubBookEpubControllerEpubReadingDelegateEpubReaderEpubReaderTheme
Behind that small surface, the package keeps the EPUB-specific runtime internals needed for real rendering:
- archive-based EPUB parsing
- a local Shelf server that serves reader assets and EPUB resources
- a WebView-based reader widget, aligned with the legacy implementation
Design
-
Domain entities are pure value objects.
-
Serialization and query-string concerns live in internal
data/models. -
Parser, server, assets and WebView details stay internal and are not exposed through the package entrypoint.
-
The widget lifecycle mirrors the PDF package: load, show loading/error, render the reader, then close cleanly.
Usage
final controller = EpubController();
EpubReader(
epubBook: EpubBook(
productId: 'book-42',
fileUri: Uri.parse('file:///tmp/book.epub'),
),
controller: controller,
);