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
1
vote
1 answer
show second Dialog if someone does not input text into the first Dialog within a timefrate?
I have made a dialog appear which can be closed if someone correctly types in a certain word. I wanted to know if it was possible to make a second dialog appear if someone does not type anything into the first text box within a certain timeframe.…

selm440
- 13
- 2
1
vote
4 answers
Change background color for the action section in Flutter alertDialog
I'm new to Flutter and trying to customize the AlertDialog widget of the material dart.
There are ways to set the background color for the whole dialog, is there a way to set the background color only to certain part of the dialog, from the attached…

Nikhil Bharadwaj
- 867
- 4
- 24
- 42
1
vote
2 answers
how to manage textField controller for multiple dataRow in dataTable Flutter
In my flutter project, I want to make the screen which is user enter quantity for multiple product. I want to manage text controllers for multiple data rows in the data table.
My data table code is:
TextEditingController textController =…

Kalp Shah
- 279
- 2
- 14
1
vote
1 answer
How to get the width and height of AlertDialog - Flutter Web
I want to get the exact height and width of AlertDialog in flutter.

Syed Irfan Hussaini
- 419
- 4
- 18
1
vote
2 answers
Clear controller textfield flutter
I'm facing something strange. I have textfield in my app that can be cleared without problem, and once cleared, the delete icon disappears.
But, when i want to clear a textfield that is in a AlertDialog, the text is cleared, but the icon to delete…

Kévin
- 497
- 10
- 37
1
vote
0 answers
Put custom expanded widget as AlertDialog content
I want to put custom widget: https://github.com/GotJimmy/accordion as AlertDialog content. In general, it works with approach as below:
showAlertDialog(BuildContext context) {
showDialog(
context: context,
builder: (BuildContext…

user1209216
- 7,404
- 12
- 60
- 123
1
vote
2 answers
Flutter builder for AlertDialog not being updated by SetState in parent
I have a parent StatefulWidget with a StatelessWidget child, which returns an AlertDialog box. The StatelessWidget is built from a builder in the StatefulWidget when the "green download" button is pressed. (Upon confirmation in the AlertDialog the…

RedHappyLlama
- 53
- 1
- 8
1
vote
1 answer
Flutter/ 3 Rows in one Container or AlertDialog
I'm trying to make an Alert Dialog with a navigation window. There should be 3 Rows with different IconButtons to Navigate on another site. Unfortunately I'm new to Flutter and don't know how to make 2 more Rows. Can someone please help me? Is it…

bayrixx
- 47
- 8
1
vote
1 answer
Flutter: How to place the AlertDialog's actions at the top of its body?
Normally the AlertDialog's actions are placed at the bottom of the dialog. I wonder if it would be possible to place them not at the bottom but at the top. I've read the documentation:
and it seems this it not possible using actions. Maybe I'm…

Iván Yoed
- 3,878
- 31
- 44
1
vote
2 answers
Unable to load asset in Alert Dialog content
I know that there are a lot of thread related to this question but they didn't help.
I have an asset folder containing images. Images are properly shown in other parts of the code but not in the Alert Dialog. In the example I use a .gif file, but I…

c4dado
- 23
- 4
1
vote
0 answers
How to set up custom behaviour when receiving a notification in Flutter
I have an app built in flutter and I am sending certain notification via firebase messaging to a given device. When that device receives the notification, I would like that there will be an alarm a bit like when you receive a phone call. I would…

M4trix Dev
- 1,828
- 3
- 23
- 48
1
vote
2 answers
Flutter ListView.builder not working in alert dialog
I want to display item list in alert dialog, for payment confirmation.
but it's not working, i tried many solutions.
AlertDialog(
titlePadding: EdgeInsets.all(0),
contentPadding: EdgeInsets.symmetric(horizontal: 10, vertical: 0),
…

Rohit Soni
- 1,300
- 6
- 12
1
vote
3 answers
How to Manage alert dialog by clicking other areas of Screen in Flutter?
I have an activity in my app. I am using Alert Dialog. when I reach to this activity and Alert Dialog is open, while I click other area of screen it disappears, but the problem is that while I want to click insides of any text field it reappear…

Qasim Ali
- 434
- 2
- 5
- 31
1
vote
1 answer
Can any one tell what is wrong with this Dialog?
I have this dialog But when I call it it gives me this error :
Unhandled Exception: 'package:flutter/src/widgets/localizations.dart': Failed assertion: line 453 pos 12: 'context != null': is not true.,
My Code:
return showDialog(
context:…

OKKO
- 33
- 8
1
vote
1 answer
How to add tabs to an alert dialog in flutter
I have a stand-alone class called dialogs.dart which contains a reusable alert dialog. I want this alert dialog to have tabs, but I have no idea how to implement it if it's possible. Any ideas are highly appreciated.
Here's my code for…

Karegeya Jean Marie Vianney
- 35
- 1
- 5