Skip to content

Instantly share code, notes, and snippets.

@berkanaslan
Created May 28, 2021 07:03
Show Gist options
  • Save berkanaslan/a3cd8e13e5bfa1540b2fdf6405ee28b1 to your computer and use it in GitHub Desktop.
Save berkanaslan/a3cd8e13e5bfa1540b2fdf6405ee28b1 to your computer and use it in GitHub Desktop.
class ExitAlertDialog extends StatelessWidget {
@override
Widget build(BuildContext context) {
return AlertDialog(
title: Text('Çkış'),
content: Text("Çıkış yapmak istediğinizden emin misiniz?"),
actions: <Widget>[
FlatButton(
onPressed: () {
Navigator.of(context).pop(false);
},
child: Text(
'İptal',
style: Theme.of(context).textTheme.button.copyWith(
fontWeight: FontWeight.normal,
),
),
),
FlatButton(
onPressed: () {
Navigator.of(context).pop(true);
},
child: Text('Çıkış'),
),
],
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment