Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

how to close alertdialog flutter

showDialog(
            context: context,
            child: new AlertDialog(
              title: const Text("Location disabled"),
              content: const Text(
                  """
Location is disabled on this device. Please enable it and try again.
                  """),
              actions: [
                new FlatButton(
                  child: const Text("Ok"),
                  onPressed: _dismissDialog,
                ),
              ],
            ),
        );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #close #alertdialog #flutter
ADD COMMENT
Topic
Name
9+4 =