Using GestureDetector to catch gestures of MaterialButton child

Posted by Jennifer | Updated on

Using GestureDetector to catch gestures of MaterialButton child. You must do the opposite. Instead of wrapping RaisedButton in a GestureDetector, wrap a GestureDetector in a RaisedButton. You also have to remove the RaisedButton padding, so you can expand the GestureDetector acting area.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers