mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user