change next card logic for kanji
This commit is contained in:
parent
d6fb9caa63
commit
b26636d400
|
@ -104,9 +104,11 @@ class _KanjiPageState extends State<KanjiPage> {
|
|||
setState(() => isPressed = !isPressed);
|
||||
},
|
||||
onNextCard: () => setState(() {
|
||||
if (isPressed) {
|
||||
controller.clear();
|
||||
isPressed = false;
|
||||
widget.onNextCard();
|
||||
}
|
||||
setState(() => isPressed = !isPressed);
|
||||
}),
|
||||
onPreviousCard: () => setState(() {
|
||||
controller.clear();
|
||||
|
|
Loading…
Reference in New Issue