Give the App Your Personal Touch

Now let’s modify what we’ve seen. We’ll change the app color to be green, add a red reset button to reset the counter to 0, make the app display the string “None” instead of the counter when the counter is at 0 and change the appBar’s title text. In doing this, we’ll get a feel for how to make simple changes, and also an introduction to more complex Flutter syntax.

The result will look like this:

images/FirstApp/None.png images/FirstApp/15scaled.png

Change the App’s Primary Color

We’ll start editing our app with the simplest change: changing the color to green. This ...

Get Programming Flutter now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.