fix: Keyboard doesnt close on selecting a custom inputfield

This commit is contained in:
Jacques Doeleman 2022-11-14 13:57:23 +01:00
parent f95ee5f54c
commit c7abd1fe96

View file

@ -33,12 +33,16 @@ class ItemList extends StatefulWidget {
}
class _ItemListState extends State<ItemList> {
var widgets = <Widget>[];
late ItemBuilder builder = ItemBuilder(
options: widget.itemBuilderOptions ?? ItemBuilderOptions(),
);
@override
Widget build(BuildContext context) {
var widgets = <Widget>[];
ItemBuilder builder = ItemBuilder(
options: widget.itemBuilderOptions ?? ItemBuilderOptions(),
);
void initState() {
super.initState();
for (var item in widget.items.entries) {
widget.itemBuilder == null
? widgets.add(
@ -71,7 +75,10 @@ class _ItemListState extends State<ItemList> {
height: widget.spacing,
));
}
}
@override
Widget build(BuildContext context) {
return Column(
children: widgets,
);