164 questions
0
votes
1
answer
31
views
Flutter : AlertDialog fixed dimensions
I have 2 states of bloc in my widget (for now). One is "initial" the other is "loading".
I want the AlertDialog to have same dimensions on both states. But different content.
I ...
1
vote
1
answer
193
views
Show CircularProgressIndicator before showDialog
In my Flutter application I need to allow admin users to download a CSV file with all the data entered into Firebase.
To do this, admins must press a button. If they do it from the web, the file is ...
0
votes
1
answer
44
views
Flutter AlertDialog background resize when keyboard comes up
I'm new at Flutter the problem is, that I created an AlertDialog with a textfield. On the background there is a stateful widget with textfields in a SingleChildScrollView. When the keyboard comes up ...
0
votes
2
answers
55
views
Flutter textFiled input is always save the change in AlertDialog widget
I have problem that create cancel button in textField.
But it's always save changing cancel button and submit button both
If I delete the cancel button code, it's also save the change of textField ...
1
vote
0
answers
135
views
Flutter: AlertDialog not showing
it's my first time working with flutter and I'm currently trying to implement a map with different icons. by clicking on an icon a pop up window should appear. I've watched some youtube videos now and ...
0
votes
1
answer
259
views
The return type 'String' isn't a 'void', as required by the closure's context
I'm trying to create a function which shows a AlertDialog with a text form field.
user will enter a value into this field and then will push the "ok" button.
I want to return entered string ...
0
votes
1
answer
116
views
Flutter alert dialog issue
Alert dialog pop not closing. In previously this code is worked as now its not working? when i clicked the cancel or confirm button background navigation is worked but alert cannot close foreground ...
0
votes
0
answers
91
views
setState taking ages to update a dialog (Flutter)
Good night everyone. I am having some trouble with a simple dialog to update a file transfer in my app. Every time I get a new progress update I call a function that takes the amount of bytes read and ...
3
votes
2
answers
1k
views
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 ...
0
votes
1
answer
82
views
The function of showDialog is not showing alertDialog on the onPressed method in Flutter when trying to press the on pressed function
This is the ShowDialog function that i have created but the problem doesn't seem to be understable to me as i think i have made it quite right.
showAlertDialog({
required BuildContext context,
...
1
vote
0
answers
82
views
Material3 is applying to all the components except my AlertDialog widget in Flutter app
I applied the useMaterial3 : true in the theme for the app, and it's working fine except for the AlertDialog, and the components within- they are all in material 2.
The project is new, very buggy, not ...
1
vote
2
answers
458
views
show alert dialog in flutter without onTap, onPressed etc
How do I display an alert dialog in flutter without user interaction?
I have a Widget that shows a ListView. When a specific condition is true, I want to display an alert dialog within the same widget ...
0
votes
1
answer
200
views
Flutter Alert dialog is not showing when I debug on chrome
When I debug on chrome the alert dialog is not showing.
My code:
PopupMenuItem(
value: 1,
onTap: () {
ShowMyDialog();
Navigator.pop(context);
},
child: ListTile(
leading: Icon(...
2
votes
1
answer
1k
views
How to implement progressindicator within a alertdialog in flutter?
I am new to flutter and I am trying to learn the platform. So, here I am trying to display information from jsonplaceholder onto a alertdialog while is activated when a button is pressed in main.dart(...
0
votes
0
answers
97
views
How to display dialog box inside textFieldSearch after selecting an item in search dropdown in flutter
I'm searching from textFieldSearch, after selecting an item from searchDropdown I want a popUp
What I tried ->
In textFieldSearch getSelected property I tried calling AlertDialog, But it's not ...
0
votes
1
answer
515
views
Why the screen becomes dark when an alert was displaying with flutter?
I don't know why the screen becomes dark when I try to use the alert on initState() in my flutter application.
This is the code :
if (element.isCharacteristic42) {
...
0
votes
1
answer
45
views
Flutter Reopen AlertDialog during on press anybutton
When I navigate to the screen it opens the showDialog box from _navigateSlide widget and there is onTap functionality and also a button for submitting but when I press the button it reopens the ...
0
votes
1
answer
355
views
How to design alert dialog box in flutter
What can I do to design a alert box in flutter in which we have a tick mark on the top of the box half inner side and half outer side of the dialog box. Where we have some successful message
1
vote
3
answers
292
views
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<...
0
votes
2
answers
5k
views
pop until in flutter auto route package does not work
I am using the AutoRoute package for Flutter.
I have the following two screens generated using the auto route package,
HomeRoute()
ProductsRoute()
Then from HomeRouteI do the following,
context....
-1
votes
1
answer
3k
views
How to set maximum size in alert dialog in flutter
How can i set maximum size for an alert dialog in flutter and the same dialog shrink if the items are not upto the maximum size here is the code am currently using
showDialog(
context: context,...
0
votes
1
answer
443
views
Get.defaultDialog with ListView.builder is throwing exception
I am having an AlertDialog with a ListView.builder. without giving definite height and width, the alert dialog is not showing. the list I have is dynamic so I don't want to give a definite height to ...
0
votes
2
answers
523
views
In FlutterFlow site, how can I add TextField in AlertDialog action?
In FlutterFlow site, how can I add TextField in AlertDialog action?
0
votes
1
answer
512
views
Change background color of DialogButton in Flutter
I am using rflutter_alert and I currently want to Change background color of DialogButton in my Flutter app and I am not getting it. Where should I modify my code with the color chosen for the button?
...
0
votes
0
answers
433
views
Show dialog when drawer is pressed
I am trying to make an alert dialog box when drawer is pressed, but don't know why it doesn't work.
drawer: Drawer(
child: Column(
children: [
DrawerHeader(
...