Questions tagged [flutter-dialog]

68 questions
1
vote
3 answers

Flutter: Hide first alert dialog when other is shown

I want to hide the first alert dialog when I call showDialog() from it. After that when I close the second dialog I want the first dialog was visible again. How I can achieve this?
1
vote
1 answer

Flutter -Widget Text, not updating when value change even with SetState

I have created a container. His child is a text. When I tap on the container/text, it display a modal and a Picker. Then, the user can select a value. Press the confirm button and my text widget should change to display the value selected by the…
1
vote
1 answer

DropdownButton within showModalBottomSheet doesn't reflect value change

I'm trying to add a dropdown list, depending, for Android I'm using DropdownButton, for iOS a CupertinoPicker: Platform.isAndroid ? AndroidSelect( items: ([0] + priceOptions), value: minPrice, zeroValue: 'no min', onChanged: (int?…
hansaplast
  • 11,007
  • 2
  • 61
  • 75
1
vote
1 answer

How to create alert dialog on onTap on ListTile and select option to replace listTile value

Greetings everyone I'm new to flutter I need help implementing the simple feature of the Dialog. I have a listTile consisting of members with different roles (Tressure, Secretary, Chair Person, and Ordinary Member) Firstly I want to create an…
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
2 answers

Flutter How Can I Show Dialog on Another Page

I want to show dialog when I press the button I want to be navigated to another page and then I want to show a dialog indicating that I have been navigated to that page. So I try this code; InkWell( onTap: () async { …
Rkdio
  • 153
  • 2
  • 13
1
vote
1 answer

Limit the size of showDialog barrier and content

I'm trying to clip or limit the size of the showDialog barrier so it can be contained in another widget. I tried using LayoutBuilder inside the showDialog to get the constraints, but it isnt working. I'm on flutter 2.2 WEB I also tried setting a…
1
vote
1 answer

How to create a dialog box that automatically refreshes the current distance to a fixed position?

I am trying to create a generic flutter function which presents a dialog box that automatically refreshes the current distance to a fixed position? When the dialog box is active, it will display the distance(in meters) from the current position to…
Tomato
  • 11
  • 1
1
vote
2 answers

how can i change the TextStyle of showDateRangePicker() or showDateRangePicker() in flutter

Want to change the TextStyle of helpText in showDateRangePicker() in Flutter. Can anybody Help. buildMaterialDatePicker({BuildContext context, SearchVM model}) async { final DateTimeRange picked = await showDateRangePicker( …
DIVYANSHU SAHU
  • 1,035
  • 11
  • 24
1
vote
0 answers

How to create a custom dialog in flutter?

I'm working on a flutter application, I want to show a dialog above button if clicked as this image: How can I do it?
Ahmed Sa'eed
  • 173
  • 2
  • 3
  • 12
1
vote
1 answer

How to dismiss a Dialog alert widget automatically in Flutter?

Forgive me if its a noob question or the code seems too basic, I am new to flutter. I have done my fair share of googling but i havent been able to find a solution. As soon as the future function starts, i want to show the Loading alert. When the…
Hassan Hammad
  • 172
  • 1
  • 9
0
votes
0 answers

Showing an alert dialog with an expand-and-crossfade animation

I would like to show an AlertDialog with an "expand and cross-fade" transition originating from the widget that is tapped to open it. Does Flutter provide APIs for this transition, or does it need to be implemented manually? If the latter, how?
0
votes
3 answers

How to dismiss a flutter dialog automatically, and navigate back?

I'm working on a website made in Flutter. I want that after some action is completed successfully, a dialog is displayed, it closes automatically, and it goes back to the previous page. My problem is that I can't make the following error…
ldiaz997
  • 128
  • 8
0
votes
1 answer

Ask "yes" or "no" in flutter dialog?

I want to ask user "Yes" or "No", to continue (or not) some action. I have code that shows alert, but don't know how to close automatically alert dialog after user have clicked one of the two buttons. bool showAlertDialog(BuildContext context,…
0
votes
1 answer

Why is my function preventing the dialog dismiss/pop in Flutter?

I am trying to execute a function after a dialog is dismissed/popped. I read this article How to run code after showDialog is dismissed in Flutter? and tried to do it as recommended but it wouldn't work for me. This is how I call my…
Yuki
  • 255
  • 1
  • 2
  • 9