Open hinterlandcreative opened 4 years ago
My widget tree looks like this:
Stack( children: <Widget> [ // ... Positioned.fill( // draws a box with padding at the top and bottom of the screen (see screenshot) child: LayoutBuilder( builder(context, constraints) => Column( children: <Widget> [ // ... other stuff SizedBox( height: constraints.maxHeight - sizeOfOtherStuffAbove child: SearchBar<ContactModel>( onSearch: (query) => model.search(query), onItemFound: (contact, _) => ContactListItem(contact: contact,), buildSuggestion: (contact, _) => ContactListItem(contact: contact,),),)
When the suggestions load they looks like this and scroll correctly at first:
But then when scrolling it looks like this:
My widget tree looks like this:
When the suggestions load they looks like this and scroll correctly at first:
But then when scrolling it looks like this: