5 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.17
You save:  €36.90
List Price:  £110.02
You save:  £31.43
List Price:  CA$191.15
You save:  CA$54.61
List Price:  A$210.08
You save:  A$60.02
List Price:  S$188.77
You save:  S$53.93
List Price:  HK$1,092.75
You save:  HK$312.23
CHF 91.40
List Price:  CHF 127.97
You save:  CHF 36.56
NOK kr1,068.48
List Price:  NOK kr1,495.92
You save:  NOK kr427.43
DKK kr688.44
List Price:  DKK kr963.84
You save:  DKK kr275.40
List Price:  NZ$228.70
You save:  NZ$65.35
List Price:  د.إ514.18
You save:  د.إ146.92
List Price:  ৳16,410.04
You save:  ৳4,688.92
List Price:  ₹11,657.31
You save:  ₹3,330.90
List Price:  RM656.90
You save:  RM187.70
List Price:  ₦201,305.62
You save:  ₦57,520
List Price:  ₨38,987.91
You save:  ₨11,140.19
List Price:  ฿5,087.62
You save:  ฿1,453.71
List Price:  ₺4,505.29
You save:  ₺1,287.32
List Price:  B$717.15
You save:  B$204.91
List Price:  R2,545.11
You save:  R727.22
List Price:  Лв252.39
You save:  Лв72.11
List Price:  ₩191,270.87
You save:  ₩54,652.72
List Price:  ₪514.18
You save:  ₪146.92
List Price:  ₱8,124.45
You save:  ₱2,321.43
List Price:  ¥21,898.07
You save:  ¥6,257.04
List Price:  MX$2,326.14
You save:  MX$664.66
List Price:  QR510.64
You save:  QR145.90
List Price:  P1,887.68
You save:  P539.37
List Price:  KSh18,478.68
You save:  KSh5,280
List Price:  E£6,550.13
You save:  E£1,871.60
List Price:  ብር8,046.40
You save:  ብር2,299.13
List Price:  Kz119,061.49
You save:  Kz34,020
List Price:  CLP$124,379.71
You save:  CLP$35,539.60
List Price:  CN¥993.01
You save:  CN¥283.74
List Price:  RD$8,224.84
You save:  RD$2,350.12
List Price:  DA18,836.81
You save:  DA5,382.33
List Price:  FJ$316.51
You save:  FJ$90.44
List Price:  Q1,087.38
You save:  Q310.70
List Price:  GY$29,320.35
You save:  GY$8,377.84
ISK kr13,848.61
List Price:  ISK kr19,388.61
You save:  ISK kr5,540
List Price:  DH1,389.92
You save:  DH397.15
List Price:  L2,473.55
You save:  L706.77
List Price:  ден7,958.15
You save:  ден2,273.92
List Price:  MOP$1,125.85
You save:  MOP$321.69
List Price:  N$2,539.14
You save:  N$725.52
List Price:  C$5,155.83
You save:  C$1,473.20
List Price:  रु18,663.10
You save:  रु5,332.69
List Price:  S/524.70
You save:  S/149.92
List Price:  K544.20
You save:  K155.49
List Price:  SAR525.03
You save:  SAR150.02
List Price:  ZK3,617.21
You save:  ZK1,033.56
List Price:  L642.65
You save:  L183.62
List Price:  Kč3,193.84
You save:  Kč912.59
List Price:  Ft50,002.94
You save:  Ft14,287.57
SEK kr1,072.36
List Price:  SEK kr1,501.36
You save:  SEK kr428.99
List Price:  ARS$124,487.26
You save:  ARS$35,570.33
List Price:  Bs967.89
You save:  Bs276.56
List Price:  COP$536,181.17
You save:  COP$153,205.56
List Price:  ₡71,769.17
You save:  ₡20,506.94
List Price:  L3,461.75
You save:  L989.14
List Price:  ₲1,051,649.55
You save:  ₲300,492.76
List Price:  $U5,378.94
You save:  $U1,536.95
List Price:  zł551.05
You save:  zł157.45
Already have an account? Log In


Hello, in this video, I am going to show you how to implement a bottom sheet. So the bottom sheet basically allows you to open up like a little menu that just scrolls up from the bottom, it's a really cool thing to do. So you might get seen applications when you click a button, maybe you have like a blue bar at the bottom, it has an arrow, you click it, and you just saw, you know, scrolls up. And you could have different options. That option potentially could be made for sharing for deleting something for editing, not that sort of stuff. Obviously, the functionality the option that you want to provide a totally up to you.

I'm going to show you how to implement a bottom sheet and you can customize it however you wish. And to implement the bottom sheet. Really simple to be fair. So what we need to do is in our classes start a local void. And this is basically going to be the method that initiates the bottom sheet. Don't open bottom sheet is in a context which we'll be using Very soon.

And now we do show modal bottom sheet. And I would like I didn't manually myself. So I, you know, keep track of what I've been doing. And the context is going to be what's being passed through. We're going to have build up if we were we're going to be constructing what our, you know, bottom sheet will look like. And this will be content on at first.

And now what we are going to do put the code in braces and in here we need to exclude a container. And inside of here, we need a new child. This is going to be wrap. And in here, you would have tools so this is the general no format for in in here. You connected Weber children, you want to put tactical images, but I recommend trying to do that as well. But you'll see that without extra formatting, it just doesn't look very good.

What you want is in this, Oh, this looks fine stick inside of a bottom sheet. And the list tile will go into how a kneading is basically going to be an icon at start. And again, you can customize the arrangement of what you put in here with the icons da, see a lot. Again, we're not doing functionalities, just the you know, the visual front end side, and the title for this loan, and then comma, and then he bought on top. So once we click it, we can, you know, do some functionality. I'm just going to do a print up the simpleness A For example, and that's it.

And if you want to add more options, you literally just need to duplicate that and modify this this. And what's in the on top of this is to have some coal on this one. And instead of a long icon, a map icon. Yeah, go on with a map. Yeah. Let's save that.

Let's see what we got nothing yet because we haven't actually triggered it. So what we're going to do is go down here is create this is going to be icon button. So this needs a icon, icons, dots and I'm going to say is that something for open Yeah, let's do this again, this way looks like and it's an event for encore. So when it's been pressed, we're going to trigger that, but we can trigger it by saying open bottom sheet, you need the context. And this is created right here. But we'll save that.

We'll see that with the hot reload button appears. I click it. As you can see, it appears from the bottom now looks pretty cool. I'll click alarm, we get open alarm, we get perfect that you might be thinking, how do we close this and go back to the main part of our application, click off it. If you don't want that, you want to be able to essentially click one of the items and for the actual bottom sheet to close, it's pretty simple. To be fair, all you need to do is in the on top, preferably after the rest of the code has been run.

You just put navigator dot off context which has been passed in then So if I was to do that, so I go back, if I click along, adding the triggers the open alarm print, and then it closes it. So let me demonstrate one more time, click and it closes it for the map. It doesn't close it because I haven't implemented this yet. So that's how you make a closing once you select the item you may want that you may know. So that's really, if you have any questions, feel free to drop 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.