Permalink
Browse files

feature: AlertDialog supports '\n' (Converts it to <br>)

  • Loading branch information...
MikeMitterer committed Jan 30, 2017
1 parent c7ece40 commit d7d05fdfa131d21c12845dbf38d366b0d229bee1
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/src/dialog/MaterialAlertDialog.dart
@@ -17,7 +17,7 @@ class MaterialAlertDialog extends MaterialDialog {
Validate.notNull(title);
Validate.notBlank(okButton);

this.text = text;
this.text = text.replaceAll("\n","<br>");
this.title = title;
this.okButton = okButton;
return this;

0 comments on commit d7d05fd

Please sign in to comment.