For questions relating to Flutter's AlertDialog class. Use this tag in combination with the general [flutter] tag. If your question applies to Flutter more generally, use the [flutter] tag only.
Questions tagged [flutter-alertdialog]
157 questions
0
votes
1 answer
Why the screen becomes dark when an alert was displaying with flutter?
I don't know why the screen becomes dark when I try to use the alert on initState() in my flutter application.
This is the code :
if (element.isCharacteristic42) {
Scaffold:
(showDialog(
…

rania
- 63
- 6
0
votes
3 answers
Flutter showDialog
Can i showDialog inside a function without passing context?
void test(){
showDialog(context: context, builder: (_) => AlertDialog(
content: Column(
children: [
Row(
children: const [
…

Tiru
- 57
- 1
- 6
0
votes
1 answer
Flutter Reopen AlertDialog during on press anybutton
When I navigate to the screen it opens the showDialog box from _navigateSlide widget and there is onTap functionality and also a button for submitting but when I press the button it reopens the _navigateSlide I don't know why it reopens…

RAF Algowid
- 87
- 2
- 6
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
How to design alert dialog box in flutter
What can I do to design a alert box in flutter in which we have a tick mark on the top of the box half inner side and half outer side of the dialog box. Where we have some successful message

Himani Upadhyay
- 51
- 1
- 7
0
votes
1 answer
I've been trying to output AlertDialog in flutter after someone enters something, But alertdialog doesn't work
I wanted to get an output of whatever user typed inside the textfield, I referred to official documentation of flutter dev. I couldn't come up where I am wrong, I would be really glad if you guys help. I want the textfield input as output using a…

nik10
- 3
- 1
0
votes
3 answers
overflow at the bottom of the Get.defaultDialog() when the keyboard is open
I am using Get.defaultDialog() with a ListView.Builder and a TextformField() at the bottom of the dialog. The issue is whenever I open the keyboard, The bottom of the dialog box is getting overflowed.
I have tried various ways, But nothing is…

Flutter
- 123
- 1
- 9
0
votes
0 answers
Connection with firebase delay in emulator
I am making an application in flutter with a connection to Firebase, but it takes time to connect to the emulator, when using a physical device it connects immediately, some option that must be activated in Android

Gregorio Cruz
- 3
- 2
0
votes
2 answers
pop until in flutter auto route package does not work
I am using the AutoRoute package for Flutter.
I have the following two screens generated using the auto route package,
HomeRoute()
ProductsRoute()
Then from HomeRouteI do the following,
context.router.push(const ProductsRoute());
Then inside the…

CodeR_Ax20
- 91
- 1
- 8
0
votes
1 answer
How to set maximum size in alert dialog in flutter
How can i set maximum size for an alert dialog in flutter and the same dialog shrink if the items are not upto the maximum size here is the code am currently using
showDialog(
context: context,
builder: (ctx) =>…

Serenity Emmanuel
- 29
- 8
0
votes
2 answers
show AlertDialog based on condition
I want to show a What's New style AlertDialog to inform users what has changed in my app after updating. I've created the following function to see if the app has been updated:
Future checkNewVersion() async {
PackageInfo packageInfo =…

John Harrington
- 1,314
- 12
- 36
0
votes
1 answer
Get.defaultDialog with ListView.builder is throwing exception
I am having an AlertDialog with a ListView.builder. without giving definite height and width, the alert dialog is not showing. the list I have is dynamic so I don't want to give a definite height to the listview.builder. And I tried several…

Flutter
- 123
- 1
- 9
0
votes
1 answer
How to position two widgets
I was dealing with AlertDialog and I ran into a positioning problem.
I made two action buttons in the form of a widget and I can't position them in the ways I know
Widget Button1 = ElevatedButton(
style:…

Verc
- 145
- 1
- 8
0
votes
2 answers
In FlutterFlow site, how can I add TextField in AlertDialog action?
In FlutterFlow site, how can I add TextField in AlertDialog action?

Ali Ercan
- 3
- 4
0
votes
1 answer
Change background color of DialogButton in Flutter
I am using rflutter_alert and I currently want to Change background color of DialogButton in my Flutter app and I am not getting it. Where should I modify my code with the color chosen for the button?
// Showing Alert Dialog with Response JSON…

365posadas
- 27
- 5