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(() {
|
||||
controller.clear();
|
||||
isPressed = false;
|
||||
widget.onNextCard();
|
||||
if (isPressed) {
|
||||
controller.clear();
|
||||
widget.onNextCard();
|
||||
}
|
||||
setState(() => isPressed = !isPressed);
|
||||
}),
|
||||
onPreviousCard: () => setState(() {
|
||||
controller.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user