On Pressed
Package to make any widget clickable easily.
How
Rather than dealing with wrapping the text in another widget, just add .onPressed to any widget and make it clickable easily.
Text("Click Me").onPressed((){
print('I was clicked')
});
Package to make any widget clickable easily.
Rather than dealing with wrapping the text in another widget, just add .onPressed to any widget and make it clickable easily.
Text("Click Me").onPressed((){
print('I was clicked')
});