Replies: 1 comment
|
Hi @finnvyrn, Yes, EPUB rendering is fully supported! 🚀 We provide a dedicated modular package: ✨ Key EPUB Capabilities:
💻 Quick Example:import 'package:flutter/services.dart';
import 'package:hyper_render/hyper_render.dart';
import 'package:hyper_render_epub/hyper_render_epub.dart';
Future<void> loadEpub() async {
// 1. Open the EPUB archive
final bytes = await rootBundle.load('assets/book.epub');
final book = await EpubBook.open(bytes.buffer.asUint8List());
print('Loaded: "${book.title}" by ${book.author}');
final chapter = book.chapters.first;
// 2. Render with HyperViewer
HyperViewer(
html: chapter.htmlContent,
mode: HyperRenderMode.paged, // or HyperRenderMode.virtualized
imageLoader: book.imageLoader, // resolves archived image assets
);
}Check out the runnable example in Let us know if you run into any specific book formatting requirements! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is this ready to render EPUB books?
All reactions