make errors selectable/copy-pasteable and scrollable when they're large

there seems to be no downside to this, short errors look the same
This commit is contained in:
Dieter Plaetinck
2024-05-17 09:07:49 +02:00
parent de4950f218
commit df5e2ca145

View File

@@ -35,8 +35,9 @@ void showErrorDialog(dynamic exception, BuildContext context) {
showDialog(
context: context,
builder: (ctx) => AlertDialog(
scrollable: true,
title: Text(AppLocalizations.of(context).anErrorOccurred),
content: Text(exception.toString()),
content: SelectableText(exception.toString()),
actions: [
TextButton(
child: Text(MaterialLocalizations.of(context).closeButtonLabel),