How to make Flutter RaisedButton selected state?

Posted by Andre Scott | Updated on

If you want to make Flutter RaisedButton selected state? In order to give this Container a similar behavior to the press functionality of the RaisedButton, I wrapped it within a GestureDetector, and controlled the change of the state inside onTap call.

Here is example code:


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