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
2
votes
0 answers
How can I create Flutter numberpicker AlertDialog with more than 1 input?
I know I can use numberpicker pub.dev package to display an AlertDialog with one number wheel. How can I make an AlertDialog with more than one numberpicker?

leo848
- 637
- 2
- 7
- 24
2
votes
1 answer
Flutter : Waiting for response of an alert dialog inside onWillAccept function of DragTarget
I have recently started learning Flutter and I am stuck at a point while dealing with Drag and Drop using Droppable and DragTarget. When I Drag my draggable element over DropTarget element, I am doing few validations in onWillAccept method. One of…

vinit_1791
- 162
- 1
- 2
- 8
2
votes
1 answer
How to show an AlertDialog with a background task in Flutter
Good morning,
I'm developing my first application in Flutter and I would like to implement a background task that every second checks if a condition meets requirement. In other words, while the user uses the application, in background there is a…

Marco Sisca
- 21
- 2
2
votes
1 answer
How to create custom reusable alert dialog in flutter
i've question about custom alert dialog, I've created one custom reusable alert dialog but when I am using it. it will not work. I mean on the pressed event is not working. when I click on it nothing happens so please can anyone check my code and…

Rutvik Gumasana
- 1,458
- 11
- 42
- 66
1
vote
2 answers
How to detect if an AlertDialog was dismissed by tapping outside its barrier or by a button callback in Flutter?
There are 3 ways the AlertDialog can be dismissed (in my example):
Tapping outside its barrier. ('to cancel')
Tapping a button A which will call pop(). ('to proceed')
Tapping a button B which will call pop(). (to 'cancel')
I wish to run some code…

Kdon
- 892
- 6
- 19
1
vote
3 answers
Flutter - Multiple Future with error "type 'Null' is not a subtype of type 'Widget'"
I've build a simple Splash screen. I'm using this package. Now, I'm trying to add version checker via Firebase Remote Config to my Splash Screen. I've written simple version checker code:
Future versionCheck(context) async {
//Get Current…

Wicaledon
- 710
- 1
- 11
- 26
1
vote
2 answers
How to use CupertinoTimerPicker in AlertDialog
When I use CupertinoTimerPicker in AlertDialog I'm Getting LayoutBuilder Error.
How can I use CupertinoTimerPicker in AlertDialog?
This is my code:
showDialog(
context: context,
builder: (context) {
return…

Deniz Durmaz
- 53
- 4
1
vote
1 answer
How to maximise TextFormField in a Dialog/Form with Flutter?
I have a Dialog/Form like this (Flutter 3.0.5 - Web Chrome):
Future showInformationDialog(BuildContext context) async {
double screenWidth = MediaQuery.of(context).size.width;
double screenHeight = MediaQuery.of(context).size.height;
…

Randomize
- 8,651
- 18
- 78
- 133
1
vote
1 answer
How to crop text when overflowing?
I have an AlertDialog that shows some data, I would like it to fit when overflowing, but the Overflow method does not work for some reason. When using it, I still get an overflow, could you tell me how to fix it?
AlertDialog alert = AlertDialog(
…

Verc
- 145
- 1
- 8
1
vote
1 answer
I want to filter using CheckboxListTile in flutter but i have not showing any reflection of filtering in listview when i use Alert dialog?
I filter the one litview builder list to another checkbox list and this is working, but when i add this CheckboxListTile in Alert dialog when no filter reflection showing.
I used StatefulBuilder also but is not useful to filtering listview.
[This is…

nitish chauhan
- 75
- 8
1
vote
4 answers
Dart/Flutter Add an Image to AlertDialog Text Field
I have an Application where I want Users to be able to buy Power Ups inside an Alert Dialog.
For the actual buying, the user simply presses the IconButton, which already works.
Is there a way to display the Images also in the Text above, instead of…

Felpower
- 87
- 1
- 12
1
vote
0 answers
How to make Alert Dialog is reusable / customizable for another new Alert Dialog
can u guys help me with this coding? I'm quite confused about how to implement final and required parameters and display them with input. I want to create one file dart which is GoAlertDialog (go_alert_dialog.dart) that can pop out a warning icon,…

bebbot _
- 13
- 3
1
vote
4 answers
Trying to use showDialog()/show Pop up on app startup
What I want to achieve: I want to open a pop up explaining my app when it starts.
My approach: As far as I understand it from googling the issue, I should use the showDialog() method. In its most basic form:
showDialog(
context: context,
…

Joe
- 311
- 3
- 17
1
vote
1 answer
flutter How to update UI towards Alert dialog box?
I'm making an app that supports both landscape and portrait mode.
I'm using the Orientation widget to detect if it's portrait or landscape.
Most UIs change their size and layout normally. However, the Alert Dialog only rotates the direction, but the…

Jungwon
- 1,038
- 7
- 20
1
vote
1 answer
TextField don't resize my alertdialog - Flutter
I leave the entire code fragment, the main idea is to have a textfield that, by using the keyboard, shows me a series of elements, in the description variable, I have that element to select, this works well, the only issue is, how to keep my…

Eduardo Gonzalez
- 325
- 1
- 5
- 14