Hello in this video I'm going to show you how to implement a Cupertino slider. This is really simple. Just put a child and Cupertino slider you know why they're basically a slider that's styled the way iOS devices have it and for the child creeper will order this and the value is the default initial value. So let's say if I put this and unchanged I'm gonna put this double so this is gonna be a valve run you see actually what we get this Yep. So he wasn't you know, doing stuff but he wasn't actually letting me If not actually moving, and we need to update that ourselves. So what we want to do is we want to create a variable.
Don't say double, no, slider value equals zero and this will be the default loida value. And then in here is set state. And we want to set a slider value equal to vow to save it and reload, we can actually use it and it prints. Okay. So if we go all the way to the end, it should print out one, go all the way to this thought it will print out. Okay, but as the actual not incremental money looks smooth, but this is too many increments.
So we can actually modify that. We can say, say minimax. So let's say for the minimum GPA at zero, I'm happy with all four The indentation is a bit if I put him in the room so now if I was save it reload and go back the map is one when, okay, it's still on the jumps are kind of unpredictable. What we can do is do division. So if I do division of 10 only 10 Division, that means, as you can see economic jump 10 times, so it's Start in 100 initially, and zero, I only forgot the enter you can see is 100. And obviously you could even do less you can use that provides you have a lot of customization.
The problem that really isn't much more to it than that is you can change the active color, while we need to do is experiment with the engine and the on change start, basically, function trigger, and that basically gets called upstart and at the end and the app color was like a water sign. And depending on what sort of container it's in, and this property will vary the actual size of it. And if you ever need to use the value from this somewhere, maybe it's the volume slider you would use this slider value very good. Then that's it. If you have any questions Free to pop me a message. And as usual, I look forward to seeing you in the next video.