“Showdialog com o Builder Flutter” Respostas de código

Showdialog com o Builder Flutter

showDialog(
        context: context,
        builder: (BuildContext context) => new AlertDialog(
          title: new Text('Warning'),
          content: new Text('Hi this is Flutter Alert Dialog'),
          actions: <Widget>[
            new IconButton(
                icon: new Icon(Icons.close),
                onPressed: () {
                  Navigator.pop(context);
                })
          ],
        ));
Arrogant Armadillo

Mostre a diálogo Fechar 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); // <<----
loonix

Respostas semelhantes a “Showdialog com o Builder Flutter”

Perguntas semelhantes a “Showdialog com o Builder Flutter”

Mais respostas relacionadas para “Showdialog com o Builder Flutter” em Dart

Procure respostas de código populares por idioma

Procurar outros idiomas de código