Questions tagged [flutter-showmodalbottomsheet]
130 questions
1
vote
2 answers
How to Pass data from showmodalbottomsheet to Previous Page in Flutter
How i pass data from showmodalbottomsheet to previous page. Below is the sample code, what i have tried is there is a button when i click it displays modalbottomsheet and when i click on Done button it should pass 1 value to previous page and also i…

Mohammed Nabil
- 662
- 1
- 8
- 36
1
vote
1 answer
Flutter showModalBottomSheet below app bar
I try to show modal bottom sheet on google map page but I need the barrier to be below the app bar for using back button. I can't acheive that.
Then I thought to replace it with bottom sheet but the map will be enabled and I don't want that.
I need…

lady
- 356
- 1
- 2
- 14
1
vote
1 answer
Unable to reflect updated parent state in showModalBottomSheet
I am relatively new to Flutter and while I really like it I'm struggling to find a way to have state values in the parent be updated in showModalBottomSheet. I think I understand the issue to be that the values aren't reflecting in…

Matt Croak
- 2,788
- 2
- 17
- 35
1
vote
1 answer
My modalBottomSheet is draggable just on edges
I have a DraggableScrollableSheet inside of a showModalBottomSheet builder. I have set isDismissible: true for modal sheet but my widget is draggable just on edges. That is because I have a ListView inside of DraggableScrollableSheet.
What I should…

Ovidiu Uşvat
- 701
- 1
- 6
- 29
1
vote
1 answer
How to make Modal Bottom Sheet elevated equally with Bottom App Bar in Flutter?
So, I am a new Flutter Developer and currently trying to make my own flutter app without any tutorial. I am confused with the elevation of the Modal Bottom Sheet and Bottom App Bar. I want both of the widgets to be elevated equally. Currently, my…

Renaldi Arlin
- 51
- 2
- 8
1
vote
1 answer
Firebase "CurrentUser displayName" won't update with bottomsheet
My application has Firebase Authentication implemented and each user have to input their display name to register into the application.
Inside my application I want the user to be able to update this display name.
The logic is very simple, user…

SLendeR
- 839
- 7
- 25
1
vote
1 answer
Flutter: Force modalBottomSheet to only close on button click
I am using a modalBottomSheet to store my user's settings profile. I want to perform a firebase operation on close of the bottom sheet. Is there a way to disable all modalBottomSheet gestures to force the sheet to only close on an icon onTap…

Dan_Hemingway
- 75
- 4
1
vote
2 answers
Flutter showModalBottomSheet is hidden behind CupertinoTabBar
I use CupertinoTabBar, but want to show material design BottomSheet when user's device is Android.
However, when I used both of them, BottomSheet is hidden behind CupertinoTabBar like below.
Could you help me to fix this? Or is it bad to use both of…

naHash
- 51
- 1
- 4
1
vote
1 answer
setState() called after dispose(): _StatefulBuilderState#09642(lifecycle state: defunct, not mounted)
I'm showing content with bottomsheet, i'm updating folder size after calculating it, using statefulbuilder's setState, i used mounted condition also, then also it showing setState after called dispose, Help me to solve this.
FileStat fileStat =…

MSARKrish
- 3,355
- 4
- 30
- 43
1
vote
2 answers
How to put an iOS style dismissible bar on flutter modal sheet
I am pretty new to flutter and trying to achieve a dismissible bar for my modalSheet. Something like this image:
I can only think of a stack. But that would make the code complex. Please let me know if there is a better way.

Faizyy
- 353
- 2
- 15
1
vote
0 answers
Flutter ModalBottomSheet state (Radio buttons)
I can't update my state inside modalBottomSheet when i am using radio buttons. When I am changing the radio buttons i am retrieving data from server and i want to update the state.
here is my code
Here i am calling the…

Rock
- 511
- 2
- 7
- 18
1
vote
0 answers
Flutter - change enableDrag and isDismissible on a showModalBottomSheet after the modal has been rendered
I would like to change the state my showModalBottomSheet is in. Specifically change enableDrag and isDismissible between true/false without showing a new modal or replacing the one that is already rendered. Is this currently possible at all?
bool…

Isak dl
- 448
- 3
- 13
1
vote
1 answer
Flutter Could not find the correct Provider above this Consumer Widget
I am trying to make a map and button below the map which calls ModalBottomSheetBar with a form inside it but i am getting an error, anyone know what is the problem in the below code ?
It gives "Could not find the correct Provider above this…

Mike
- 41
- 1
- 4
0
votes
2 answers
Check if user close modal bottom sheet by draging down flutter
I am creating an app where user can add record. There is a modal bottom sheet which allow user to add their record. When they press add record the modal bottom sheet closes and I reset the text fields and tab Controller. But the issue is how to…

RIZWAN ALI
- 120
- 1
- 1
- 11
0
votes
1 answer
How to Make Content Inside showModalBottomSheet Scrollable when it consists webview inside?
I am working on a Flutter application where I'm using a showModalBottomSheet to display some content, including a WebViewWidget. The issue I'm facing is that the content inside the showModalBottomSheet is not scrollable when it exceeds the available…

AndyShubh
- 3
- 3