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
How Do I Get a TextButton to Take the Width of its Parent AlertDialog?
I have tried for a few hours to solve this problem with no success, so I thought it would be worth saving a few hairs by asking Stackoverflow.
The Problem:
I cannot get a TextButton to take the full width of its parent AlertDialog widget.
When I…

George Lee
- 814
- 18
- 34
0
votes
1 answer
How to check if a widget is removed or not?
I want to display some Alert Dialogs in succession, i.e. when the user closes the first one, the second one gets displayed, and so on.
But I get an error if the previous Alert Dialog is not popped (removed from the display) and the program tries to…

Anshul Raj
- 63
- 1
- 4
- 13
0
votes
2 answers
Display a Message Once a Day Per a User
I want to display a message to a user once a day on login. I'm aware that we can use .difference().inDays >= 1 to compare 2 DateTimes show the message if true. Where I am confused is which 2 DateTimes we should be comparing. I currently use…

Gabriel
- 346
- 5
- 24
0
votes
1 answer
Getting A Deactivated Widget's Ancestor Error After Alert Dialog
I've made a login form with cognito in flutter, and I wanna notify the users after a successful or failed attempt to login, with a AlertDialog. After a user failed attempt, the dialog displays, it pops back to the current screen, and after I press…

GrandMagus
- 600
- 3
- 12
- 37
0
votes
1 answer
Update alert modal child from parent
I'm calling show my dialog when a button is pushed to display the progress of an upload which is in the parent.
Throughout the upload function's parts I'm updating state like setState(() => _progress = _progress + 0.05); for example. However my…

forests
- 345
- 5
- 11
0
votes
2 answers
How to put a colour listview in an alertdialog, with the leading as the colour
Hello my problem is about building a good alertdialog.
i have a Listtile Listtile where the leading is a color and the title is the name of the colour.
on tap the Listtile shows a alert dialog with colour options.
this is what i am expecting to…

ANDREW EBARE
- 85
- 1
- 9
0
votes
1 answer
AlertDialo gets dull in Night mode Flutter
I have two themes in my flutter app, the issue is when Night theme is selected, the alert dialogs also appear to be dark & dull. How can I increase the alert dialog's brightness level while using the dark theme?

Noor
- 193
- 1
- 2
- 15
0
votes
1 answer
Exception: bad state: Future already completed
While checking version mismatch in init state of home page I'm getting above error,
Here is my code:
@override
void initState() {
getCategoriesName();
checkInternetConnection();
try {
versionCheck(context);
} catch (e) {
…

dartKnightRises
- 815
- 15
- 26
0
votes
1 answer
AlertDialog or SnackBar after user is successfully logged in
I need a little help with an issue I can't seem to understand quite completely. I am pratcicing with AWS and I need to display a message for my Login screen after the user has logged in or to display an error message if the login has failed. The…

GrandMagus
- 600
- 3
- 12
- 37
0
votes
2 answers
Scrollable Alertdialog Flutter
I am struggling to make the alert dialogue box scrollable in Flutter. I have tried a few methods and so far this is the one that is working best:
Widget _buildPopupDialog(BuildContext context) {
List _iconsTable = [
Icons.build,
…

ajnabz
- 297
- 5
- 25
0
votes
1 answer
Flutter: Select an icon on an AlertDialog and show the new icon
I am trying to use an AlertDialog in flutter where the user can press a card to select an icon. Once they've selected the icon, the AlertDialog should show the newly selected icon.
Right now, I have it so that every time the user taps on the card,…

Meerkat Panda
- 3
- 2
0
votes
1 answer
Flutter type 'Future' is not a subtype of type 'Widget' error
I added a popup window (alertdialog) into my flutter project which has a streambuilder. It didnt work at first but after making it async and adding a code like below
await Future.delayed(Duration(milliseconds: 50));
It started to work fine. This…

Faruk
- 773
- 1
- 6
- 20
0
votes
1 answer
problem in updating selection in List of RadioListTile showed in AlertDialogue
I have a problem trying to solve it in weeks and still can't, please help me
i when user press add to cart it show an AlertDialogue with list of RadioListTile i does't make any selection and i press again it gives me the last selection i press on…

Hesham Elkotabi
- 193
- 1
- 9
0
votes
2 answers
Flutter & AlertDialog : My app doesn't show the alert dialog after loading
Flutter & AlertDialog : My app doesn't show the alert dialog after loading.
Even the 2 prints before and after the alert dialog was printed, the dialog was skip. Why is that? Please help me with this.
onTap: () async {
…

Punreach Rany
- 2,560
- 7
- 23
- 56
0
votes
1 answer
Flutter - CupertinoPicker in an alert dialog
I am stuck right now with the little app that I am trying to create.
The user when he will tap on an icon is supposed to get an alert dialog with 2 buttons (OK and Cancel), and in the body of the alert box, a Cupertino Picker. Below you will find…

Laurent Thomas
- 232
- 4
- 24