mirror of
https://github.com/Iconica-Development/flutter_profile.git
synced 2025-05-18 16:53:45 +02:00
Merge pull request #12 from Iconica-Development/bugfix/custom_field_keyboard
fix: Keyboard doesnt close on selecting a custom inputfield
This commit is contained in:
commit
a1e00e0980
1 changed files with 12 additions and 5 deletions
|
@ -33,12 +33,16 @@ class ItemList extends StatefulWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
class _ItemListState extends State<ItemList> {
|
class _ItemListState extends State<ItemList> {
|
||||||
|
var widgets = <Widget>[];
|
||||||
|
|
||||||
|
late ItemBuilder builder = ItemBuilder(
|
||||||
|
options: widget.itemBuilderOptions ?? ItemBuilderOptions(),
|
||||||
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
void initState() {
|
||||||
var widgets = <Widget>[];
|
super.initState();
|
||||||
ItemBuilder builder = ItemBuilder(
|
|
||||||
options: widget.itemBuilderOptions ?? ItemBuilderOptions(),
|
|
||||||
);
|
|
||||||
for (var item in widget.items.entries) {
|
for (var item in widget.items.entries) {
|
||||||
widget.itemBuilder == null
|
widget.itemBuilder == null
|
||||||
? widgets.add(
|
? widgets.add(
|
||||||
|
@ -71,7 +75,10 @@ class _ItemListState extends State<ItemList> {
|
||||||
height: widget.spacing,
|
height: widget.spacing,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
return Column(
|
return Column(
|
||||||
children: widgets,
|
children: widgets,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue