[flutter] Confirm Dialog

💜Dabo (개발자 다보)·2020년 4월 9일
2

Flutter Widget

목록 보기
3/11
post-custom-banner

Result

Code

Future<void> _asyncConfirmDialog(BuildContext context) async {
    return showDialog<void>(
      context: context,
      builder: (context) {
        return AlertDialog(
          title: Text('Confirm Title'),
          content: Text('bora hihi'),
          actions: <Widget>[
            FlatButton(
              child: Text('CANCEL'),
              onPressed: () {},
            ),
            FlatButton(
              child: Text('ACCEPT'),
              onPressed: () {},
            )
          ],
        );
      },
    );
  }
profile
𝙸 𝚊𝚖 𝚊 𝚌𝚞𝚛𝚒𝚘𝚞𝚜 𝚍𝚎𝚟𝚎𝚕𝚘𝚙𝚎𝚛 𝚠𝚑𝚘 𝚎𝚗𝚓𝚘𝚢𝚜 𝚍𝚎𝚏𝚒𝚗𝚒𝚗𝚐 𝚊 𝚙𝚛𝚘𝚋𝚕𝚎𝚖. 🇰🇷👩🏻‍💻
post-custom-banner

0개의 댓글