feat(diary) Default Meal time values and Portions dynamic display for each meal

This commit is contained in:
2024-02-21 15:29:10 +03:00
parent becf515acc
commit 75f7d52d39
4 changed files with 23 additions and 9 deletions

View File

@@ -23,6 +23,7 @@ class CustomDropDown extends StatelessWidget {
this.filled = true,
this.validator,
this.onChanged,
this.defaultValue,
}) : super(
key: key,
);
@@ -61,6 +62,8 @@ class CustomDropDown extends StatelessWidget {
final bool? filled;
final SelectionPopupModel? defaultValue;
final FormFieldValidator<SelectionPopupModel>? validator;
final Function(SelectionPopupModel)? onChanged;
@@ -94,6 +97,7 @@ class CustomDropDown extends StatelessWidget {
}).toList(),
decoration: decoration,
validator: validator,
value: defaultValue,
onChanged: (value) {
onChanged!(value!);
},