Created
May 12, 2018 11:11
-
-
Save happyharis/dd6e4abc9b7dd2ae32d1bd90785564a7 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
Future _showAlert(data) async{ | |
return showDialog<Null>( | |
context: context, | |
barrierDismissible: true, | |
builder: (BuildContext context) { | |
return new AlertDialog( | |
title: new Text('Would you like to make changes?', style: new TextStyle(fontSize: 17.0)), | |
actions: <Widget>[ | |
new FlatButton( | |
child: new Text('Edit'), | |
onPressed: (){ | |
Navigator.push(context, new MaterialPageRoute(builder: (context) => new EditTodoPage(todo: data, todoID: selectedTodoId,))); | |
}, | |
), | |
], | |
); | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment