Your app needs to know when to expect a change in state. Hence, we make use of the setState(() {}) anonymous function whenever we want to notify the framework that the internal state of this object has changed.
Also. learn about the SizedBox widget.