NEW: MIH MineSweeper Package pt2

This commit is contained in:
2025-10-29 13:06:55 +02:00
parent f548db7d82
commit 23c3cf4173
19 changed files with 1805 additions and 146 deletions

View File

@@ -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(