mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
continuous mode: fix floating button
This commit is contained in:
@@ -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(
|
||||||
|
Reference in New Issue
Block a user