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, color: Colors.transparent,
child: InkWell( child: InkWell(
onTap: () { onTap: () {
setFloatingButton(0);
if (showFloatingButtonValue == 1) { if (showFloatingButtonValue == 1) {
context.reader.toNextChapter(); context.reader.toNextChapter();
} else { } else if (showFloatingButtonValue == -1) {
context.reader.toPrevChapter(); context.reader.toPrevChapter();
} }
setFloatingButton(0);
}, },
borderRadius: BorderRadius.circular(16), borderRadius: BorderRadius.circular(16),
child: Center( child: Center(