Hello, in this video, I'm going to show you how to implement a Cupertino pop up surface. Basically the rounded rectangle surface that looks like an iOS bubble, such as the alert dialog or action sheet. And the Cupertino dialog should built into flutter. You know, based off of this, you probably won't use this directly because there's so many other have a better one, but I wanted to show you that you can decide and if you want a bit more customization, you can use this one. Honestly pretty easy to do. Obviously, I've got a quick turn right here, which when clicked will open it up.
You can put it wherever you want to trigger this public input show, Cupertino, you can even do any modal pop up or the dialogues dollar will be smaller modal usually, you know cover the entire screen and the next tax Paramount with the modal pop up is basically is changing. So what we want to do is add a context build the wrong place. The context, context, context builder, you're going to build context on Arrow operators is going to invoke this and we are going to put Fuca to surface. In here, we can see three properties child key, and his service paint is basically no blow back down, again, an extra task. So free tips are highly recommended. For the child, you could go a bit more complex and what I'm going to do contain our column Muslim fit a multiple widget on a text item in there and say, save that, reload.
Click it. And there we go. Actually, sorry, I made a little mistake. The coupon No dialogue is the one that cover the entire screen, the modal one, basically just at the bottom. And that is really to be fair, not much more to it than that. If you don't want it to, you know, go over this area, you need to add like a safe area so your child there's a lot now Go for the squeeze, crease on anger in my mistake.
And obviously you can add padding didn't say carrier. So I'm actually going to be asking Ali Ali, this one I wrote the other way while show modal, modal public if we do this form instead it's just like a little thing at the bottom places like bit of information and it takes the focus off everything else. And that's it for the public services in Cupertino. If you have any questions, feel free to shoot me a message. And as usual, I look forward to seeing you in the next video.