NEW: MIH MineSweeper Package pt2
This commit is contained in:
parent
f548db7d82
commit
23c3cf4173
19 changed files with 1805 additions and 146 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue