다음이 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),