barely working example with Isar

This commit is contained in:
SomnusVeritas committed 2023-11-07 23:24:18 +01:00
1 parent d1da474998
commit 17d3a125fb
13 files changed
+78 -34

No files matched your search

+3 -2
View File
@@ -76,9 +76,10 @@ class _CreateRecipeState extends State<CreateRecipe> {
style: TextStyle(
color: Theme.of(context).colorScheme.onBackground),
),
DropdownMenu<Difficulty?>(
DropdownMenu<Difficulty>(
dropdownMenuEntries: DifficultyUtil.getDropdownList(),
onSelected: (value) => recipe.difficulty = value,
onSelected: (value) =>
recipe.difficulty = value ?? Difficulty.notSelected,
label: const Text('Difficulty'),
textStyle: TextStyle(
color: Theme.of(context).colorScheme.onBackground),