FloatingActionButton(
child: Text('버튼'),
onPressed: () {
showDialog(
context: context,
builder: (context) {
return Dialog(
child: Text('AlertDialog Title')
)
}
)
}
)
ShowDialog
, Navigator
, Theme.of
, Scaffold.of
함수들은 context를 집어넣어야 잘 작동하는 함수들