Created
May 28, 2021 07:03
-
-
Save berkanaslan/a3cd8e13e5bfa1540b2fdf6405ee28b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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