mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +08:00
Note Viewer: Delete Dialog: Use more standard Text
After reading the Material Design Guide, I feel some more standard text such as "Delete" / "Cancel" is better vs "Delete It" / "Keep It".
This commit is contained in:
@ -106,14 +106,14 @@ class NoteBrowsingScreenState extends State<NoteBrowsingScreen> {
|
|||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
FlatButton(
|
||||||
onPressed: () => Navigator.pop(context),
|
onPressed: () => Navigator.pop(context),
|
||||||
child: Text('Keep It'),
|
child: Text('Cancel'),
|
||||||
),
|
),
|
||||||
FlatButton(
|
FlatButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context); // Alert box
|
Navigator.pop(context); // Alert box
|
||||||
_deleteNote(context);
|
_deleteNote(context);
|
||||||
},
|
},
|
||||||
child: Text('Delete It'),
|
child: Text('Delete'),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user