NEW: MIH MineSweeper Package pt2
This commit is contained in:
@@ -10,6 +10,7 @@ class MihDropdownField extends StatefulWidget {
|
||||
final bool editable;
|
||||
final bool enableSearch;
|
||||
final FormFieldValidator<String>? validator;
|
||||
final Function(String?)? onSelected;
|
||||
|
||||
const MihDropdownField({
|
||||
super.key,
|
||||
@@ -20,6 +21,7 @@ class MihDropdownField extends StatefulWidget {
|
||||
required this.editable,
|
||||
required this.enableSearch,
|
||||
this.validator,
|
||||
this.onSelected,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -153,6 +155,7 @@ class _MihDropdownFieldState extends State<MihDropdownField> {
|
||||
),
|
||||
onSelected: (String? selectedValue) {
|
||||
field.didChange(selectedValue);
|
||||
widget.onSelected?.call(selectedValue);
|
||||
},
|
||||
menuStyle: MenuStyle(
|
||||
backgroundColor: WidgetStatePropertyAll(
|
||||
|
||||
Reference in New Issue
Block a user