File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,6 @@ class IngredientFormState extends State<IngredientForm> {
181
181
182
182
MealItem get mealItem => _mealItem;
183
183
184
- // note: make sure to set _mealItem.ingredient (before/after calling this)
185
184
void selectIngredient (int id, String name, num ? amount) {
186
185
setState (() {
187
186
_mealItem.ingredientId = id;
@@ -349,9 +348,7 @@ class IngredientFormState extends State<IngredientForm> {
349
348
),
350
349
),
351
350
ElevatedButton (
352
- key: const Key (
353
- SUBMIT_BUTTON_KEY_NAME ), // needed? mealItemForm had it, but not ingredientlogform
354
-
351
+ key: const Key (SUBMIT_BUTTON_KEY_NAME ),
355
352
child: Text (AppLocalizations .of (context).save),
356
353
onPressed: () async {
357
354
if (! _form.currentState! .validate ()) {
You can’t perform that action at this time.
0 commit comments