I suspect it may be an issue related to something outside of the code you've pasted, but you can try the following as alternatives for the onclicked which may work better for you anway.
If neither of the below options work then you need to check your console logs for anything that might be causing it.
onTouch: {
if (event.isUp()) {
//do stuff here
}
}
or
gestureHandlers: [
gestureHandlers: [
TapHandler {
onTapped: {
//do stuff. This is equivalent to an onClick
}
},
LongPressHandler {
onLongPressed: {
//do stuff when user holds down
}
}
]