barely working example with Isar

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

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),