Epub Viewer is an epub ebook reader that encapsulates the folioreader framework. It supports iOS and android.
Name | Android | iOS |
---|---|---|
Reading Time Left / Pages left | ✅ | ✅ |
Last Read Locator | ✅ | ✅ |
Highlight And Notes | ✅ | ✅ |
Load ePub from Asset | ✅ | ✅ |
Share | ✅ | ✅ |
Distraction Free Reading | ✅ | ✅ |
Custom Fonts, FontSize | ✅ | ✅ |
IOS Full Screen Version | ✅ | ✅ |
Add starlight_epub_viewer as dependency to your pubspec file.
starlight_epub_viewer:
git:
url: https://github.com/Waqar27324/epubviewer.git
No additional integration steps are required for Android.
This plugin requires Swift
to work on iOS.
Add the following lines in the Podfile
file of your iOS project
platform :ios, '9.0'
...
target 'Runner' do
use_frameworks!
use_modular_headers!
pod 'FolioReaderKit', :git => 'https://github.com/Waqar27324/Folioreaderkitios.git'
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
First of all you need to import our package.
import 'package:starlight_epub_viewer/starlight_epub_viewer.dart';
And then you can use easily.
/// Config
StarlightEpubViewer.setConfig(
///for viewer color
themeColor: Colors.blue,
///night mode for viewer
nightMode: false,
///scroll direction for viewer
scrollDirection: StarlightEpubViewerScrollDirection.ALLDIRECTIONS,
///if you want to share your epub file
allowSharing: true,
///enable the inbuilt Text-to-Speech
enableTts: true,
///if you want to show remaining
setShowRemainingIndicator: true,
);
/// Open From File
StarlightEpubViewer.open(
"file path",
);
/// Open From Assets Folder
StarlightEpubViewer.openAsset(
"assets file path",
);