PagingWidget constructor
const
PagingWidget({
- Key? key,
- required String htmlContent,
- EpubContentParser? contentParser,
- String bookId = '',
- int chapterIndex = 0,
- String rawFontFamily = 'Segoe',
- Color accentColor = Colors.indigoAccent,
- Color backgroundColor = Colors.white,
- TextStyle style = const TextStyle(color: Colors.black, fontSize: 30),
- required dynamic handlerCallback(
- PagingTextHandler handler
- required VoidCallback onTextTap,
- required dynamic onPageFlip(),
- required dynamic onLastPage(),
- dynamic onFirstPageBack()?,
- int starterPageIndex = 0,
- required String chapterTitle,
- required int totalChapters,
- Widget? lastWidget,
Implementation
const PagingWidget({
super.key,
required this.htmlContent,
this.contentParser,
this.bookId = '',
this.chapterIndex = 0,
this.rawFontFamily = 'Segoe',
this.accentColor = Colors.indigoAccent,
this.backgroundColor = Colors.white,
this.style = const TextStyle(
color: Colors.black,
fontSize: 30,
),
required this.handlerCallback(PagingTextHandler handler),
required this.onTextTap,
required this.onPageFlip,
required this.onLastPage,
this.onFirstPageBack,
this.starterPageIndex = 0,
required this.chapterTitle,
required this.totalChapters,
this.lastWidget,
});