From df5e2ca145a01665d2f00e1ff1c0352c6167db32 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Fri, 17 May 2024 09:07:49 +0200 Subject: [PATCH 1/2] make errors selectable/copy-pasteable and scrollable when they're large there seems to be no downside to this, short errors look the same --- lib/helpers/ui.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/helpers/ui.dart b/lib/helpers/ui.dart index 2de98a5d..82acdbf7 100644 --- a/lib/helpers/ui.dart +++ b/lib/helpers/ui.dart @@ -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), From 72a85e1cae9793c0d1f67457d3f3aca8b5fc0daf Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Fri, 17 May 2024 09:09:03 +0200 Subject: [PATCH 2/2] not needed param --- lib/widgets/nutrition/forms.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/widgets/nutrition/forms.dart b/lib/widgets/nutrition/forms.dart index c87202ac..6bf3fcb0 100644 --- a/lib/widgets/nutrition/forms.dart +++ b/lib/widgets/nutrition/forms.dart @@ -148,7 +148,6 @@ class MealItemForm extends StatelessWidget { IngredientTypeahead( _ingredientIdController, _ingredientController, - showScanner: true, barcode: _barcode, test: _test, ),