Questions tagged [flutter-showmodalbottomsheet]
130 questions
0
votes
0 answers
Module being imported from multiple locations flutter
My friend and I are working on a flutter app; however, he is on flutter version 3.1 while I'm on 3.7-beta. When I recently switched computers from an Intel processor to the M1 chip (MacBook Pro 2021), I kept getting the error that the module is…

Harini
- 1
- 2
0
votes
2 answers
flutter open bottom sheet as wrap content and then set maximum height
when the bottom sheet appears it does not has that much height. but when a checkbox clicked in the bottom sheet it is expanding to the top regardless the screen size. what I have been trying to do is to set max height for bottom sheet. can't find…

aligur
- 3,387
- 3
- 34
- 51
0
votes
1 answer
Flutter alertDialog doesnt response truly in larger screens
I am using an 8-inch emulator. In this emulator, alertDialog and showBottomModalSheet don't work correctly. It is responding like the screen has half-width. Are there any constraints I have to change in themeData?

Hüseyin Sezen
- 56
- 9
0
votes
1 answer
I can't get the state of my Stateful widget to display the updated month on the ElevatedButton with ListWheelScrollView.useDelegate()
import 'package:flutter/material.dart';
import 'year_month_picker/states_month.dart';
import 'year_month_picker/widgets/wheeltile.dart';
class MyMonthPickerr extends StatefulWidget {
const MyMonthPickerr({Key? key}) : super(key: key);
…

Mathieu
- 35
- 3
0
votes
1 answer
How to tap outside of the BottomSheet to dismiss it?
I have a showModalBottomSheet widget inside SingleChildScrollView. When the showModalBottomSheet pops up, it leads me to a DraggableScrollableSheet with a custom height. It all works fine. But somehow, it seems like whenever I do custom height using…

YSC
- 29
- 6
0
votes
1 answer
icon above center showModalBottom Flutter
How do I make the icon in showModalBottom above the middle, like the picture above, I made it using a container and set the position to positioned but it was cut off when I set the top to negative, like the following picture

Timothy
- 25
- 1
- 3
0
votes
1 answer
showModalBottomsheet adds listview as a child Widget
showModalBottomsheet adds listview as a child Widget. When listview slides to the top, how to respond to the bottom sheet drop-down gesture by continuing to pull down
showModalBottomSheet(
context: context,
isScrollControlled: true,
…

franky_dev
- 5
- 2
0
votes
2 answers
SingleChildScrollView with ListView in a showModalBottomSheet
I am using a SingleChildScrollView with a ListView in a showModalBottomSheet but the keyboard is hidding the field when the user is filling it.
showModalBottomSheet(
context: context,
isScrollControlled: true,
enableDrag:…

Chloé
- 331
- 1
- 5
- 14
0
votes
1 answer
update showModalBottomSheet context without needing to open again
I have a code in flutter with a showModalBottomSheet
showModalBottomSheet(
backgroundColor: Colors.transparent,
context: context,
…

Mateus Neves
- 674
- 1
- 6
- 20
0
votes
1 answer
height of cards base on widgets height flutter
I want to set the height for my cards based on the height of the widgets in it.
I use globalKey and set it in my widget but return null.
can anyone help me how can I do that?
final GlobalKey _Key = GlobalKey();
showModalBottomSheet(
…

user17838882
- 93
- 2
- 14
0
votes
1 answer
Unhandled Exception: setState() called after dispose() - due to modal dissmissed
I have a modalBottomSheet. On it, I am displaying several widgets, especially an audioPlayer.
I have find out that when I press the play button, the audio file is playing, so far so good, but if I tap outside the modalBottomSheet, the modal is…

Laurent Thomas
- 232
- 4
- 24
0
votes
1 answer
Unable to update switch tile within modal bottom sheet
We are trying to update a switch tile within a modal bottom and I suspect this is effecting the state somehow but I am not sure how to resolve this issue.
ListTile(
title: const Text('Transactional'),
subtitle:…

Boss Nass
- 3,384
- 9
- 48
- 90
0
votes
1 answer
flutter text input in showModalBottomSheet not pop when back button clicked
i want to pop showModalBottomSheet when i clicked the button of back in android mobile.
this is my showModalBottomSheet example :
showModalBottomSheet(
context: contextt,
useRootNavigator: true,
isScrollControlled:…

user17838882
- 93
- 2
- 14
0
votes
3 answers
flutter showModalBottomSheet not pop when back button clicked
i want to pop showModalBottomSheet when i clicked the button of back in android mobile.
this is my showModalBottomSheet example :
showModalBottomSheet(
context: contextt,
useRootNavigator: true,
isScrollControlled: true,
…

user17838882
- 93
- 2
- 14
0
votes
1 answer
Capturing the event of showModelBottomSheet closing
I have been learning flutter for sometime now.
I am developing an application and I am stuck with a problem now.
showModalBottomSheet(
context: context,
builder: (context) {
…

Mohamed zindha
- 7
- 2