From 65dbf426cf97f4716135ac8dcd85cfb10eec1d78 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Tue, 23 Jun 2026 15:32:42 +0200 Subject: [PATCH] Use ValueKey instead of accessing uuid directly This would crash on objects that don't have any uuid attribute, such as the Language. ValueKey works on all of them, as long as they are equatable. Closes #1236 --- lib/widgets/exercises/forms.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/exercises/forms.dart b/lib/widgets/exercises/forms.dart index 959f36cd9..40d473e2f 100644 --- a/lib/widgets/exercises/forms.dart +++ b/lib/widgets/exercises/forms.dart @@ -78,7 +78,7 @@ class _ExerciseCategoryInputWidgetState extends State>((value) { return DropdownMenuItem( - key: Key(value.uuid.toString()), + key: ValueKey(value), value: value, child: Text(widget._getDisplayName(value)), );