So the next thing you want to do is we want to simply change the background of all application by clicking
on button and we can do this by firstly safe off color and a variable.
My column includes Kinloss red.
This needs to be smaller.
And then we save this Fariba or we better say cut us equal it's my color so we use this as a color which
works perfectly fine.
And if you restart we see nothing changes.
Therefore this works and we know one to press a button and then change our background.
Therefore we make Meffert change color.
I call it and we say and my color equals so we give it new value.
Class blue Zeus and now we call our method and on trust and we restart hypothecation wait a little.
And if we now click on a button nothing happens we see Hi from my state widget for widget.
Still gets called so on press is working but our background is not getting free rent.
That's because we have to teraflop that we want to rerun certain elements if they change.
And we also can see that Michaella has in fact changed by printing in August so we can say print my
color here and then copy it and put it below my Cullerton because all cold's runs from top to bottom.
This one should still be read.
And this one should be changed to blue.
And if we run it and click on here and to zoom in we've got these all ports and we've got Qala and this
value and this video and even if we can't read or read it we see it has changed and therefore the color
should change.
But as I said we have to tell a flat out that we need to rearrange some parts of our application and
we can do that with our message.
Court said state said state.
We just type in as a team and then you should see set state which is really important function method
and Falana So you click on it and then you've got ads like this firstly and inside this.
We make another anonymous function by using these two brackets and then we make our method body with
or shopfronts a c's.
And here comes the code that needs to be rewritten.
So in our case we want to rerun the elements which are in relation to our common to all my cut or variable.
Can you delete all of this and my cola changes C.M. And if we rerun it now then flood should understand
that this Kalla is connected with or widgets don't you.
And therefore this should be rerun.
So if we wait and then click on a button we should see that our background in effect really changes.
So we click it all and we see the background changes and alaw said stay it worked.
We rerun that.
Our widget set is connected with our color.
Therefore this widget on here gets we run that and we get like a new callout Beck ront.