epub_viewer 0.0.4 epub_viewer: ^0.0.4 copied to clipboard
epub_reader is an epub ebook reader that encapsulates the folioreader framework.
Epub Viewer #
a fork of epub_kitty with few more features. i made this out of epub_kitty because the author was inactive(he isn't merging PRs or attending to issues) and i started having alot of issues with the plugin
ScreenShots #
epub_reader is an epub ebook reader that encapsulates the folioreader framework. It supports iOS and android, but is customizable on iOS. It is very easy to use, you just need to set up the configuration file can open the ebook, very convenient. However, it is not yet highly customizable on android. But it has been able to meet daily needs.
Install #
dependencies:
epub_viewer: latest_version
Usage #
/**
* @identifier (android useless)
* @themeColor
* @scrollDirection (android useless)
* @allowSharing (android useless)
*/
EpubViewer.setConfig("book", "#32a852","vertical",true);
/**
* @bookPath
* @lastLocation (optional and only android for now)
*/
EpubReader.open(
'bookPath',
lastLocation: {
"bookId": "2239",
"href": "/OEBPS/ch06.xhtml",
"created": 1539934158390,
"locations": {
"cfi": "epubcfi(/0!/4/4[simple_book]/2/2/6)"
}
},
);
// Get locator which you can save in your database
EpubReader.locatorStream.listen((locator) {
print('Locator: $locator');
// convert locator from string to json and save to your database to be retrieved later
});
Check the Sample project or this ebook app for implementation
Issues #
If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on Github and I'll look into it. Pull request are also welcome.
For help getting started with Flutter, view the online documentation.
For help on editing plugin code, view the documentation.