Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Scrolling of List in SizedBox #21

Open
hinterlandcreative opened this issue Mar 26, 2020 · 0 comments
Open

Bug: Scrolling of List in SizedBox #21

hinterlandcreative opened this issue Mar 26, 2020 · 0 comments

Comments

@hinterlandcreative
Copy link

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:

Simulator Screen Shot - iPhone 11 Pro Max - 2020-03-26 at 13 45 43

But then when scrolling it looks like this:

Simulator Screen Shot - iPhone 11 Pro Max - 2020-03-26 at 13 45 49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant