75 questions
0
votes
0
answers
58
views
GoRouter Pop Animation Skipped When Dismissing Alert Dialog
I am using GoRouter in Flutter to handle navigation and show a page with a slide-up animation.
However, when I try to show a confirmation dialog (AlertDialog) before dismissing the page, the slide-...
1
vote
2
answers
119
views
Flutter ListView in AlertDialog overlaps with Dialog Title
I have a simple ListView in my alert dialog. It allows a user to make selection and once selected, the list tile color changes.
The weird issue that I am having is for the selected tiles, when I ...
0
votes
2
answers
93
views
Dialog not showing data
I am trying to get data from an API, which I did successfully, and show the data in a dialog box on my Flutter App.
Initially what I did was create a function void _showDialog() right after the ...
0
votes
2
answers
413
views
How to detect which dialog is opened in Flutter?
When the user is moving around in my Flutter application, I wish to be able to track where the user goes and how they reach it. For now, it seems that the router would be updated when a user is ...
0
votes
2
answers
216
views
How to render svg image in Flutter
I am working on flutter app, where I am generating QR code for payment. When user click on Generate QR code button, it will call an API which return svg.
My problem is that when I receive this svg ...
0
votes
2
answers
264
views
Flutter AlertDialog with Strange Scrolling Behavior
I'm encountering a strange issue with AlertDialog in Flutter, specifically with its scrolling behavior. The AlertDialog displays as intended and its basic functionalities work properly. However, when ...
0
votes
3
answers
355
views
Context: Navigator operation requested with a context that does not include a Navigator
I know there are several similar questions listed, but I can not resolve it after I tried some solutions from previous questions. :(
I want to do a network check and show a dialog if it has no network ...
1
vote
2
answers
632
views
is there any way in flutter to persist dialog when moving from one screen to another?
I have a two screens. Screen A and Screen B. I have a button on Screen A. when I click on it. It shows a dialog. after that I have a used Future.delayed(). when duration is over I move to the Screen B....
20
votes
1
answer
14k
views
How Do I Show a Dialog in Flutter Using a go_router Route?
I am currently using showGeneralDialog to present a dialog popup like this:
This is all fine and good, but it happens at the root Navigator level, and I would rather have all my views as a Go Router ...
2
votes
3
answers
4k
views
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 ...
2
votes
1
answer
3k
views
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 ...
1
vote
1
answer
197
views
How to prevent tap on AlertDialog area from passing behind?
I am using a WebView to show an embedded youtube video.
After that I show an AlertDialog that appears over that WebView and if I tap on the AlertDialog area, the behind video will handle the tap ...
0
votes
1
answer
242
views
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 ...
0
votes
1
answer
175
views
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, ...
0
votes
1
answer
1k
views
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 ...
-1
votes
1
answer
436
views
Flutter - Delay barrierDismissible on dialog
In Flutter, use showGeneralDialog to show a dialog and use barrierDismissible to make it can not be closed when click outside.
But i want to make it can not be closed when click outside for first 2 ...
5
votes
5
answers
4k
views
Flutter - How to check if dialog is shown when using go_router
I was using Navigator 1 then I migrated to go_router to support deep links and web.
Sometimes when I send HTTP requests, I show a loading dialog using showDialog() until the response is processed, ...
1
vote
2
answers
174
views
How to close severals showDialogs in flutter
How can I to close all the showDialogs in my aplication? in this case _mostrarDialogConfirmacion is the dialog where i request to the user a confirmation to make a query, cargandoDialog is another ...
0
votes
3
answers
548
views
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 ...
1
vote
1
answer
227
views
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 ...
1
vote
1
answer
53
views
How can we create a container with a text as a child of showDialog and appear the text in a proper way
I used to make a text ('Loading') to be centered in the show dialog but what happened is the text is appearing in a bad way as when we make a screen without scaffold, it is appearing here the same, I ...
0
votes
1
answer
774
views
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 ...
0
votes
1
answer
1k
views
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(
...
0
votes
1
answer
435
views
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 ...
1
vote
1
answer
728
views
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 ...
0
votes
2
answers
907
views
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 &...
0
votes
1
answer
1k
views
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 ...
0
votes
2
answers
477
views
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 ...
0
votes
1
answer
351
views
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 ...
0
votes
1
answer
46
views
In other words, there is no change when Alertdialog is open
showDialog(
context: context,
builder: (BuildContext context) {
return AlertDialog(
content: Container(
width: double.maxFinite,
...
1
vote
3
answers
1k
views
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?
0
votes
2
answers
53
views
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 ?
...
0
votes
1
answer
357
views
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
...
1
vote
1
answer
3k
views
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 ...
0
votes
3
answers
2k
views
TextField inside Wrap throws "The _RenderDecoration class does not support dry layout"
I need a TextField inside Wrap widget. But it throws this error,
The _RenderDecoration class does not support dry layout
....
....
════════ Exception caught by scheduler library ════════
Updated ...
1
vote
1
answer
921
views
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,
...
0
votes
2
answers
48
views
Calling setState doesn't updateshowDialog content
I have a custom popup built, and an image is supposed to change whenever one of my variables is changed. When I call the setState method, the content in my showDialog doesn't change.
What am I doing ...
2
votes
1
answer
773
views
error message nt going even if my textfield is not empty
Before I reach to my alert demo.. I am stuck in the beginning..
In my alert dialog there is a textField in content,
I have set an error text if textfield is empty but even after typing this error text ...
0
votes
3
answers
283
views
Flutter Dialog Dismiss Required Before Further Action
I'm trying to make a popup menu for my appbar, but when the menu is open, I cannot press a button on the scaffold before dismissing it first. This is similarly true for dialog widgets.
How can I ...
1
vote
1
answer
398
views
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 ...
0
votes
2
answers
1k
views
How to create a responsive dialog
I'm trying to style a Dialog() widget; but it doesn't realy let me deal with height and widht as I'd usually do it.
In a nutshell: I placed all content in a Container and I want that container to only ...
1
vote
4
answers
5k
views
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 ...
0
votes
1
answer
1k
views
Flutter showDialog popup after navigating to another screen
My application consists of two screens. The first screen runs a timer which calls a showDialog on its end. The dialog should appear only on the first screen.
But whenever I'm navigating to the second ...
2
votes
3
answers
571
views
Text widget doesn't appear in dialog after user Future.delayed in Flutter
I have a dialog that appears after user click on send button . When dialog appears , I want to show a text after 5 seconds . I use Future.delayed but the text doesn't appear at all . It appears only ...
9
votes
2
answers
8k
views
How to use BlocBuilder to refresh a Dialog in Flutter
I have a dialog and I wrap it in a blocbuilder to update it according to the type of state but the dialog just is built First time and after state has changed it doesn't rebuild.
showDialog(
context:...
0
votes
1
answer
331
views
Update button's visibility inside ModalBottomSheet from parent widget
I have Widget1 which opens up ModalBottomSheet. ModalBottomSheet contains TextField(EditText) & one button. User can input values to TextField that can make button enable/disable based on some ...
0
votes
1
answer
1k
views
how to design dialog box inside DropdownButtonFormField in flutter?
I have DropdownButtonFormField when I click on it a DialogBox with a list of items should appear, so I can select one item and it should return the selected item in DropdownButtonFormField.I tried ...
1
vote
2
answers
4k
views
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(
...
0
votes
2
answers
1k
views
How to display popup after navigating back to previous screen in flutter?
I have a scenario where i have one popup in screen A .It will be triggerd from initstate() . User can navigate to screen B after clicking on button inside the popup . How can i show the popup if user ...
0
votes
1
answer
828
views
Dialog is not work properly with singlechildscrollview and soft keyboard in flutter
Dialog is not working properly with singlechildscrollview and soft keyboard in flutter.
Problems:
Dialog design is gone under the soft keyboard
Scroll is not properly working when open soft keyboard
...