Merge pull request #10 from Pacalini/flbtn

continuous mode: fix floating button
This commit is contained in:
nyne
2024-11-01 15:20:05 +08:00
committed by GitHub

View File

@@ -513,12 +513,12 @@ class _ReaderScaffoldState extends State<_ReaderScaffold> {
color: Colors.transparent,
child: InkWell(
onTap: () {
setFloatingButton(0);
if (showFloatingButtonValue == 1) {
context.reader.toNextChapter();
} else {
} else if (showFloatingButtonValue == -1) {
context.reader.toPrevChapter();
}
setFloatingButton(0);
},
borderRadius: BorderRadius.circular(16),
child: Center(