t
Size: a a a
t
ПБ
ДК
AU
ОС
ПБ
ДК
AU
Ю
ДК
AU
AU
ДК
DS
DS
P
DS
DS
AB
exit(0)
сделан: onPressed: () async {
var isExit = await showDialog<bool>(
context: context,
builder: (context) => AlertDialog(
title: Text(S.of(context).are_you_sure),
content: Text(S.of(context).you_want_to_exit),
actions: <Widget>[
FlatButton(
onPressed: () => Navigator.of(context).pop(false),
child: Text(S.of(context).no),
),
FlatButton(
onPressed: () => Navigator.of(context).pop(true),
child: Text(S.of(context).yes),
),
],
),
);
if (isExit) exit(0);
},
AU