Skip to content

Commit df5e2ca

Browse files
committed
make errors selectable/copy-pasteable and scrollable when they're large
there seems to be no downside to this, short errors look the same
1 parent de4950f commit df5e2ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/helpers/ui.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ void showErrorDialog(dynamic exception, BuildContext context) {
3535
showDialog(
3636
context: context,
3737
builder: (ctx) => AlertDialog(
38+
scrollable: true,
3839
title: Text(AppLocalizations.of(context).anErrorOccurred),
39-
content: Text(exception.toString()),
40+
content: SelectableText(exception.toString()),
4041
actions: [
4142
TextButton(
4243
child: Text(MaterialLocalizations.of(context).closeButtonLabel),

0 commit comments

Comments
 (0)