6 minutes
Share the link to this page
You need to have access to the item to view this lesson.
One-time Fee
List Price:  $139.99
You save:  $40
List Price:  €129.13
You save:  €36.89
List Price:  £110.03
You save:  £31.44
List Price:  CA$192.03
You save:  CA$54.87
List Price:  A$211.59
You save:  A$60.45
List Price:  S$189.02
You save:  S$54.01
List Price:  HK$1,093.71
You save:  HK$312.51
CHF 91.46
List Price:  CHF 128.06
You save:  CHF 36.59
NOK kr1,061.82
List Price:  NOK kr1,486.60
You save:  NOK kr424.77
DKK kr688.17
List Price:  DKK kr963.46
You save:  DKK kr275.29
List Price:  NZ$229.08
You save:  NZ$65.45
List Price:  د.إ514.18
You save:  د.إ146.92
List Price:  ৳16,474.51
You save:  ৳4,707.34
List Price:  ₹11,636.17
You save:  ₹3,324.85
List Price:  RM659.56
You save:  RM188.46
List Price:  ₦202,985.50
You save:  ₦58,000
List Price:  ₨39,085.72
You save:  ₨11,168.14
List Price:  ฿5,135.45
You save:  ฿1,467.37
List Price:  ₺4,513.94
You save:  ₺1,289.79
List Price:  B$720.20
You save:  B$205.78
List Price:  R2,573.67
You save:  R735.38
List Price:  Лв252.56
You save:  Лв72.16
List Price:  ₩191,210.73
You save:  ₩54,635.53
List Price:  ₪513.93
You save:  ₪146.84
List Price:  ₱8,148.95
You save:  ₱2,328.44
List Price:  ¥21,975.49
You save:  ¥6,279.16
List Price:  MX$2,337.44
You save:  MX$667.89
List Price:  QR512.15
You save:  QR146.33
List Price:  P1,899.46
You save:  P542.74
List Price:  KSh18,548.67
You save:  KSh5,300
List Price:  E£6,600.72
You save:  E£1,886.05
List Price:  ብር8,069.29
You save:  ብር2,305.67
List Price:  Kz119,054.91
You save:  Kz34,018.12
List Price:  CLP$127,353.10
You save:  CLP$36,389.20
List Price:  CN¥995.31
You save:  CN¥284.39
List Price:  RD$8,255.53
You save:  RD$2,358.89
List Price:  DA18,823.05
You save:  DA5,378.39
List Price:  FJ$317.44
You save:  FJ$90.70
List Price:  Q1,091.28
You save:  Q311.81
List Price:  GY$29,398.65
You save:  GY$8,400.21
ISK kr13,807.61
List Price:  ISK kr19,331.21
You save:  ISK kr5,523.60
List Price:  DH1,396.96
You save:  DH399.16
List Price:  L2,483.42
You save:  L709.60
List Price:  ден7,975.18
You save:  ден2,278.78
List Price:  MOP$1,129.51
You save:  MOP$322.74
List Price:  N$2,572.10
You save:  N$734.94
List Price:  C$5,169.58
You save:  C$1,477.13
List Price:  रु18,701.28
You save:  रु5,343.60
List Price:  S/524.20
You save:  S/149.78
List Price:  K545.83
You save:  K155.96
List Price:  SAR525.05
You save:  SAR150.02
List Price:  ZK3,718.29
You save:  ZK1,062.44
List Price:  L642.23
You save:  L183.50
List Price:  Kč3,193.44
You save:  Kč912.47
List Price:  Ft49,741.85
You save:  Ft14,212.97
SEK kr1,070.73
List Price:  SEK kr1,499.06
You save:  SEK kr428.33
List Price:  ARS$124,628.98
You save:  ARS$35,610.82
List Price:  Bs970.47
You save:  Bs277.29
List Price:  COP$536,293.92
You save:  COP$153,237.77
List Price:  ₡72,014.29
You save:  ₡20,576.98
List Price:  L3,470.95
You save:  L991.77
List Price:  ₲1,056,195.26
You save:  ₲301,791.63
List Price:  $U5,387.22
You save:  $U1,539.31
List Price:  zł550.04
You save:  zł157.16
Already have an account? Log In


Hello, in this video, I am going to show you how to add a Cupertino action sheet. So this is basically a little pop up or no menu come from the bottom give me a few options. Usually I will have a Cancel button, and it's in the iOS style to do it, it's really simple. Make sure you follow the setup video. And first of all, we are going to add a chart. I'm going to be a rebel and add a raised button.

But I'm going to be triggering an iOS style widget. So it doesn't have to be triggered by an iOS style widget. You can mix and match. It's totally up to you. So the child text and then I'm going to say on press is going to be a method here. Yeah, I wanted to say final att for just short for action sheet and I'm going to do close to 13 no action sheet.

So long their title. And I'll say, this is what? Okay, and then we can have a method, the method is to simply expand on the title provide a bit more information of what the pop up is, therefore, but it's optional to have it in our text. And I'm going to say, do what should I say I'll say what? And now we can actually customize it with the buttons. The new action is just an array of widgets, and in this empty, no Cupertino action sheet action and it This test, obviously, mmm, you know experiment is and I recommend that you do.

We're interested in child and on prep because it's a regular widget you could add a container you could add you know images you could add tactic that what you want to keep it simple as a child in there, I mean a text child and if you're gonna say no say compressed and when it says press print, semi colon to add another button, basically the same as the and you can add as many as you want. I'm just gonna add two for this one instead of pizza. Let's cook it. So the savory and sweet you have selected cookie dough if we know to add a Cancel button after the square brackets after the action Cancel button. And this is also a Cupertino action sheet. And in here we need a child.

Again you could have any sort of widget you want to the tech console keep it simple and say on pressed when it's on pressed we need to hide it and to hide it's actually really simple to do. All we have to do in navigator dot pop context so basically just closing Watson upon the openness getting it just pops it and because this will be the current thing that is open, and therefore save it, let's see what we get. So we got this button, we click it, nothing happened because we created it, but we haven't actually triggered it for after the Cupertino action sheet. Before we close, the curly brace refers to yet, but before we actually add to the unpressed action, we need to trigger it to do it. We call this show Cupertino modal pop up. And what we want to do here is for the context we need to provide context with this idea.

There's nothing that we've created necessarily am for the builder. This is where we actually do it. For the builder build context on to use the arrow operator or AC T or wherever you name the 16 your attention to the semicolon was missing. Save that, go back, click it. I didn't see this pops up now. For I click pizza.

So you have selected Pizza Pizza, pizza pizza. And it was a cookie dough cookie, the cookie dough, but press cancel it cancelled it doesn't pay anything yet, because in here, we didn't print anything yet. If you wanted to, you could add more functionality upon cancel, maybe say something. But you can also click off and hide you like that. But it's also usually commonplace to let's say, select one of these of these items wherever they may be. And then close this and then perform the action.

So to close it again, you just use this piece of code. So I'm just going to add it to the pizza as an extra really simple test you can do for the cookie dough. So if I save that, and I go to click me, click OK. Now, as you can see, that's not closing, click pizza, your printed your selected pizza and then close it using the navigator dot pop code. So that is it for the Cupertino action sheet and I will also showed me the Cupertino action sheet actions. If you have any questions, feel free to pop me a message. And as usual, I look forward to seeing you in the next video.

Sign Up


Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.