고졸백수해킹일기

flutter showDialog 본문

코딩

flutter showDialog

ExploitSori 2021. 8. 27. 23:15

showDialog<String>(
context: context,
builder: (BuildContext context) => AlertDialog(
title: const Text('AlertDialog Title'),
content: const Text('AlertDialog description'),
actions: <Widget>[
TextButton(
onPressed: () => Navigator.pop(context, 'Cancel'),
child: const Text('Cancel'),
),
TextButton(
onPressed: () => Navigator.pop(context, 'OK'),
child: const Text('OK'),
),
],
),
),

//alert 창 맹글기

//onTap같은거에 애로우 펑션으로 넣으면 된다.

'코딩' 카테고리의 다른 글

popup을 이용한 data 전달  (0) 2022.12.10
flutter 오늘의 깨우침  (0) 2021.09.18
flutter 설치 시 --android-licenses 이슈  (0) 2021.08.22
삽입정렬 (insertion sort)  (0) 2018.06.11
쉘 정렬 (shell sort)  (0) 2018.06.11