Hello, in this video I am going to show you how to create a Cupertino switch. So a switch is something that you turn on or off like a light switch computing the switch is one that starred in, you know, an iOS style fee. So to implement is really simple. So it's going to add a child node which we need to the value on chain. So the value value on the set to false by default so see the true false true been switched on false being switched off on change, but this method does. So in the actual value columns so let me save that which will hot reload it and there we go.
We got Switch. So I've been here click type but it didn't do anything but it is still coming up in here. Let me see if I drag it up and drag it like so but it is still coming up as truth or when do you said state and before that we want to create a variable so it's going to be a bool. Which state equals and instead of setting it to a literal value, we're going to switch state and in here, when we do set state and if we say state and what this will do is refresh all of this because different been updated answer takes a while we know this. We know this If I click it, as you can see switches on, if not, but it says false as well, and we can swipe it accordingly. That's really for the Cupertino switch, you can change the active color port from that that really isn't much more to it.
If you have any questions, though, feel free to drop me a message. Actually, what you to do as an attack is add, you know, a text widget that just describes what this is you can do at the top or to the left. If you have any questions, you know, feel free to drop me a message. And as usual, I look forward to seeing you in the next video.