Flutter Modal Bottom Sheet Tutorial

preview_player
Показать описание
📗 Get the code from this tutorial 👇👇

Screen sizes are changing, they're getting ever bigger and almost without any bezels. While having a bigger screen is awesome, users often cannot reach to the top of the screen with only one hand.

For us, developers, this means putting more controls to the bottom of the screen. This is true for both the app bars and navigation drawers.

In this tutorial we're going to focus on the bottom navigation drawer and we're going to implement it as a modal bottom sheet. We're also going to make it look nice and material with rounded corners.

Go to my website for more information, code examples and articles:

Follow me on social media:
Рекомендации по теме
Комментарии
Автор

2 things:
1) showModalBottomSheet has a shape param which lets you specify the radius without having to replicate the overlay color manually.
2) No need to hardcode the height when you use Column since you can set mainAxisSize to min.


I'm currently in search of another question: How can you configure opening and closing animation?

vadimosovsky
Автор

I really appreciated that you planned ahead for your video. You pasted code snippets in rather than typing. The results were a much more effective video. Thank you.

mariefast
Автор

Helpful tutorial ❤️
Simplicity level of explaining things is just awesome

viveks.
Автор

how can i make it above bottom navigation bar as it appear to hide the bottom navigation bar

doubletz
Автор

Great tutorial! You could've used Colors.transperant on the outer container, leaves out the hassle of trying to figure out the background color imo.

viharcontractor
Автор

Hey, you can use showModalBottomSheet -> backgroundcolor, if you would do this, didn't need container color, thanks for tutorial

osmanacar
Автор

The resocoder link in the description is broken.

tannermeade
Автор

thanks for the tutorial, link for this tutorial to your website is broken

billywatsikenyere
Автор

This is the only trick you need to make the white canvas transparent:

showModalBottomSheet(
backgroundColor: Colors.transparent,

marcelomagalhaes
Автор

how to display different set of information within showModalBottomSheet on tap of list item eg: cooling...i mean how to navigate to different class within showModalBottomSheet

prabinmaharjan
Автор

Any way... really cool video :D Congrats

CarlosHenrique-thqg
Автор

great quality video and well explained

kangwachimba
Автор

is it possible to reload page after close modal bottom sheet?

rivaldiwork
Автор

Is possible load the bottom sheet only every first time that you open the App??? If it is possible, how can it do it??? I'm sorry but I'm starting... 😅 Thanks!!!

kbyo
Автор

Can you make one for ios 13 like one?, I found flutter_bottom_sheet but is not cupertino at all :(

juliocesartorrescama
Автор

Please help!!! how do you show a bottom sheet dialog with textField in iOS ?
I know that showModelBottomSheet is only used in material, and it takes care of the keyboard height.
However it won't show up if I used CupertinoApp, anything is helpful, appreciated.

laujimmy
Автор

What emulator is that? Is that the emulator provide by android studio or anything else?

rahultirkey
Автор

You should set the canvas colour to transparent rather than add another container to make the rounded corners show.

loot
Автор

Hi, Reso Coder your videos are great.

I tried your video to use showModalBottomSheet but I'm getting this error.


═══════ Exception caught by gesture
The following assertion was thrown while handling a gesture:
No Scaffold widget found.

It would be great if you could reply.

bennyoffice
Автор

@Reso Coder Hello man, a solution to the background is it
"void onButtonPressed() {
showModalBottomSheet(
Colors.transparent,
context: context,
builder: (context) {}"



thank you very much for this tutorial

Xsabino
join shbcf.ru