Questions tagged [flutter-dialog]

68 questions
0
votes
3 answers

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 layout information required for RenderFlex#87b02…
Santo Shakil
  • 981
  • 2
  • 13
  • 27
0
votes
2 answers

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 wrong, or is there a better approach? Trying to…
0
votes
3 answers

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 override this behavior? I wish for widgets like…
weg
  • 11
  • 2
0
votes
2 answers

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 be as high as it needs to be. But the Dialog()…
Joe
  • 311
  • 3
  • 17
0
votes
1 answer

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 screen, and the timer from the first screen ends,…
genericUser
  • 4,417
  • 1
  • 28
  • 73
0
votes
1 answer

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 validation. TextField is something customized component.…
0
votes
1 answer

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 with DropdownMenuItem but I need with DialogBox so…
0
votes
2 answers

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 come back to screen 1 by clicking on arrow back…
0
votes
1 answer

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 My dialog is here:- Future
0
votes
1 answer

Flutter: Is there any way to pass an argument "ID" from a page to Dialog?

I have a problem during develop my app, I understand navigation of page can used "Navigation.of(context)" with pass an argument with ID, however I would like to do same thing with page but could not find any solution. If anyone have idea how to make…
Chinbin
  • 235
  • 3
  • 9
0
votes
0 answers

Flutter Simple Dialog content going off the screen

I have a dialog I am trying to wrap the content in the dialog however I am having few problems 1)Use of wrap does not guarantee that content is in the alert dialog box 2)alignment of content is not center. I have tried all possible alignment and it…
Ravi Parmar
  • 968
  • 11
  • 28
0
votes
2 answers

Display dialog using a Raised Button

so I'm trying to display a dialog using a raised button. But when I press it, the screen just turns black. Can anyone please tell me what's wrong with my code: This is the code for my button: Container( child: SizedBox( height:…
Nzo
  • 17
  • 8
0
votes
1 answer

Access Providers from Dialogs for Flutter hooks

I am new to Flutter hooks and riverpod Basically I have a provider that stores the list of books in a book shelf. class BookList extends StateNotifier> { BookList() : super([]); void setBookList(List bookList) => …
0
votes
1 answer

Flutter dialog background image

I'm trying out some experiments with exotic Flutter dialogs. As for now, I'd like to have a SimpleDialog (or AlertDialog) with an asset image as background. Unfortunately this does not seem to be possible as only colors are available as background.…
Wouter Vandenputte
  • 1,948
  • 4
  • 26
  • 50
0
votes
1 answer

Break out dialogs in it's own file or class

I have a beginner question. It's really simple to break out a Widget to it's own class. Like having a Column with buttons in a stateless widget that accepts some functions and some strings in the constructor. Then I can include and use this from any…
Christoffer
  • 7,470
  • 9
  • 39
  • 55