mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
cleanup
This commit is contained in:
@@ -181,7 +181,6 @@ class IngredientFormState extends State<IngredientForm> {
|
||||
|
||||
MealItem get mealItem => _mealItem;
|
||||
|
||||
// note: make sure to set _mealItem.ingredient (before/after calling this)
|
||||
void selectIngredient(int id, String name, num? amount) {
|
||||
setState(() {
|
||||
_mealItem.ingredientId = id;
|
||||
@@ -349,9 +348,7 @@ class IngredientFormState extends State<IngredientForm> {
|
||||
),
|
||||
),
|
||||
ElevatedButton(
|
||||
key: const Key(
|
||||
SUBMIT_BUTTON_KEY_NAME), // needed? mealItemForm had it, but not ingredientlogform
|
||||
|
||||
key: const Key(SUBMIT_BUTTON_KEY_NAME),
|
||||
child: Text(AppLocalizations.of(context).save),
|
||||
onPressed: () async {
|
||||
if (!_form.currentState!.validate()) {
|
||||
|
||||
Reference in New Issue
Block a user