In this tutorial I will show you how you can change the color of a button when a
user presses it. To demonstrate this I will be using a RaisedButton.
Toggle button color change on press
class _MyHomePageState extends State<MyHomePage> {
// 1
bool _hasBeenPressed = false;
@override
Widget build(