Questions tagged [flutter-dialog]

68 questions
0
votes
1 answer

Refreshing Dialog In Flutter with Bloc

So I'm trying to pick a date with a DatePicker package from inside a showDialog using Bloc. Here's the code that shows the Dialog: onPressed: () { showDialog( context: context, barrierDismissible: true, child:…
João Martins
  • 706
  • 1
  • 8
  • 20
0
votes
1 answer

Update ModalBottomSheet after api call in flutter

I am new flutter , developing an application which call an api and fetching data from server which is showing on a bottom sheet. in this case Iam showing the bottom sheet meanwhile perfroming the api call. After the api call I want to update the…
0
votes
2 answers

Title is not displayed in AlertDialog Widget Flutter

Provider.of(context, listen: false) .addProducts(_editedProduct) .catchError((error) { return showDialog( context: context, builder: (ctx) { return AlertDialog( title: Text( …
0
votes
0 answers

display showDialog when a value is changed in provider

I have a boolean variable in my model class that extends ChangeNotifier, when the value of this variable changes I want to show a dialog and pop this dialog when it changes to false. Code that I am using: Widget selectedFiles() { return…
Chintan Jagad
  • 115
  • 2
  • 2
  • 7
0
votes
1 answer

Flutter: Replace bottom Dialog with alert dialog

When I click at an option of my bottom dialog, I want the bottom dialog to be replaced by an alert dialog, Here is my onTap's function code: Navigator.of(context).pushReplacement(MaterialPageRoute( builder: (_) => AlertDialog( shape:…
0
votes
1 answer

Unable to make showDialog's background transparent

I am trying to popup dialog while making http request, to accomplish this I have created function which show dialog on screen. Here is my code. class AppLoader { static Future showLoadingDialog(BuildContext context, GlobalKey key) async { …
Programmer
  • 398
  • 1
  • 9
  • 33
-1
votes
1 answer

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 second, then it can be able to close…
I'm MasY
  • 19
  • 3
-1
votes
1 answer

Flutter insert ListView inside showGeneralDialog

in Flutter i want to show simple ListView inside showGeneralDialog dialog. but i get this error: RenderBox was not laid out: RenderFittedBox#d8a97 relayoutBoundary=up1 'package:flutter/src/rendering/box.dart': Failed assertion: line 1694 pos 12:…
DolDurma
  • 15,753
  • 51
  • 198
  • 377
1 2 3 4
5