flutter_epub_viewer_kit library

Classes

Bookmark
Represents a bookmark in an EPUB book.
ColorTheme
EpubLoader
Utility class to load EPUB data from various sources.
EpubReaderController
Controller for programmatically controlling the EPUB reader.
EpubReaderLocalization
Localization strings for the EPUB reader UI.
EpubReaderWidget
A customizable EPUB reader widget.
EpubSource
Base class for EPUB source types. Use one of the subclasses to specify how to load the EPUB file.
EpubSourceAsset
Load EPUB from Flutter assets.
EpubSourceBytes
Load EPUB from raw bytes.
EpubSourceFile
Load EPUB from a local file path.
EpubSourceUrl
Load EPUB from a remote URL.
ReaderSettings
ReadingPosition
Represents the current reading position in an EPUB book.
SettingsPanel

Constants

colorThemes → const List<ColorTheme>

Typedefs

BookmarkCallback = void Function(Bookmark bookmark)
OnBookLoaded = void Function(String? title, String? author)
Callback when book is loaded.
OnError = void Function(String error)
Callback when an error occurs.
OnLoadingProgress = void Function(double progress)
Callback when loading progress changes.
OnMaxPageReached = void Function(int maxPage, int totalPages)
Callback when max readable page limit is reached.
OnPageChanged = void Function(int maxPage, int totalPages)
Callback when page changes.
PositionChangedCallback = void Function(ReadingPosition position)
SettingsChangedCallback = void Function(ReaderSettings settings)

Exceptions / Errors

EpubLoadException
Exception thrown when EPUB loading fails.