Skip to content

Commit ad64eb2

Browse files
committed
cleanup
1 parent 864c6fc commit ad64eb2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/widgets/nutrition/forms.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ class IngredientFormState extends State<IngredientForm> {
181181

182182
MealItem get mealItem => _mealItem;
183183

184-
// note: make sure to set _mealItem.ingredient (before/after calling this)
185184
void selectIngredient(int id, String name, num? amount) {
186185
setState(() {
187186
_mealItem.ingredientId = id;
@@ -349,9 +348,7 @@ class IngredientFormState extends State<IngredientForm> {
349348
),
350349
),
351350
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),
355352
child: Text(AppLocalizations.of(context).save),
356353
onPressed: () async {
357354
if (!_form.currentState!.validate()) {

0 commit comments

Comments
 (0)