私は以下を持っていますAlertDialog
。
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,
),
],
),
);
どうすれば言ったを_dismissDialog()
却下させることができAlertDialog
ますか?
onPressed: () => Navigator.pop(context),