Answers for "flutter alertdialog add close button"

1

alertdialog flutter outside click disble

showDialog(
  barrierDismissible: false, // <-- this
  builder: ...
)
Posted by: Guest on October-15-2020
3

show dialog close flutter

BuildContext dialogContext; // <<----
  showDialog(
    context: context, // <<----
    barrierDismissible: false,
    builder: (BuildContext context) {
      dialogContext = context;
      return Dialog(
        child: new Row(
          mainAxisSize: MainAxisSize.min,
          children: [
            new CircularProgressIndicator(),
            new Text("Loading"),
          ],
        ),
      );
    },
  );

  await _longOperation();
  Navigator.pop(dialogContext); // <<----
Posted by: Guest on October-15-2020

Code answers related to "flutter alertdialog add close button"

Code answers related to "Dart"

Browse Popular Code Answers by Language