Questions tagged [flutter-dialog]

68 questions
0
votes
1 answer

How can I change the dialog in flutter?

Hi I'm trying to change the view when I do setState() in dialog in flutter. I heard that it would be fixed by wrapping contents in showDialog() by StatefulBuilder(), but it didn't work. I don't know, but this is probably because I intend to inject…
0
votes
1 answer

alert dialog above of alert dialog flutter

I need to show Alert Dialog above the existing Alert Dialog, the code is when I tap on the list tile, the first alert will appear, when I tap on save on the first dialog, the sound will appear, is there any way to do this and solve the problem? …
0
votes
3 answers

How to make a SimpleDialog with scroll in Flutter

I have made a SimpleDialog to give the user the option to modify, but I have noticed that on small screens it doesn't scroll so it is cut off and cannot even be accepted. I have seen in some other questions that they put "scrolling: true" when…
0
votes
1 answer

Is it possible to use another transition for showing a dialog than for hiding

When using showGeneralDialog - is it possible to use a different transition and duration for displaying a dialog than for hiding the dialog again? E.g. a Curves.elasticOut for showing and a shorter Curve.linear transition for hiding?
0
votes
1 answer

Dialog not updating when using date picker flutter

I have a dialog which has the datePicker inside but when I select the date the Text("${selectedDate.toLocal()}".split(' ')[0]), is not updating. How can I solve this?. I have try so many solution but it’s not working code: Future birthday(widgets)…
It'sPhil
  • 61
  • 1
  • 2
  • 11
0
votes
1 answer

How to add an image over top of the dialog in a Flutter?

I am trying to design my dialog like in the picture below. However, I can't seem to wrap my head around how to do it. Because I am new started in Flutter. Below is my code: showDialog( barrierDismissible: false, context: context, …
Amin
  • 342
  • 4
  • 15
0
votes
1 answer

How to change boolean value from a Dialog?

I need to change a Boolean value from a Dialog. It works if I have my Checkbox on my page, but not when I try it in a Dialog. How can I get the value of ìsselected1 from my Dialog to my page? Here is my Dialog: IconButton(onPressed: () { …
Alexander
  • 55
  • 8
0
votes
1 answer

State of the dialog not updating on dropdown change

So I have this function to show a reusable dialog that have a list of widget. The main problem lies in the dropdown and the text field. to begin with my dropdown value is A and I wanted the text field to only show when the dropdown value is B. I…
Kim San
  • 575
  • 7
  • 22
0
votes
2 answers

Flutter - Open & Close Dialog in Drawer

I have simple drawer and I added this to my mainpage's Scaffold with drawer: CustomizedDrawer() line, and the drawer has only 1 ListTile to Login or Log Out the user. In my main page, you can open & close the drawer from left to right. I'm using…
Wicaledon
  • 710
  • 1
  • 11
  • 26
0
votes
1 answer

Detect all taps anywhere on the screen, even when displaying a dialog?

I know I can use a GestureDetector to detect taps on other widgets. But what if I want to detect any and all taps, no matter what is being displayed at the moment - i.e. even if a dialog or menu is being displayed in front of the current page. Is…
Magnus
  • 17,157
  • 19
  • 104
  • 189
0
votes
2 answers

Pass value when dialog closed

I'm trying to create an app in Flutter. When a particular button is pressed a Dialog shows up. In the dialog, the user can write to TextField. I want to use this text in the previous screen when the dialog is closed with pop(). Is there any way to…
Ballazx
  • 431
  • 4
  • 12
0
votes
1 answer

onPageChanged with Future Dialog Flutter

I am trying to get my Flutter Dialog to show page indicator dots based off the onPageChanged setState and it doesnt seem to be working. What is happening is the dots are appearing and one is highlighted but as I swipe the dots are not following the…
0
votes
1 answer

In other words, there is no change when Alertdialog is open

showDialog( context: context, builder: (BuildContext context) { return AlertDialog( content: Container( width: double.maxFinite, height: 500, child: ListView( …
0
votes
2 answers

How to create abuilder in a stateless widget class

Hi I'm trying to use aligned_dialog package from flutter to show certain dialog for my button in my separated class but it show argument type error co-related to the builder. How can I fix this ? error: The argument type 'BuildContext' can't be…
Kim San
  • 575
  • 7
  • 22
0
votes
1 answer

How to pass the value from other dart file?

I would like to pass the value from timePicker.dart to showTime.dart,and I had tried global variable but the TextFormField controller in showTime.dart only got the initalized value. //global.dart String getTime=''; //timePicker.dart Dialog( …
Ae Gg
  • 29
  • 5