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

SliverContainer fill available space #3

Closed
RaviKavaiya opened this issue Aug 3, 2020 · 2 comments
Closed

SliverContainer fill available space #3

RaviKavaiya opened this issue Aug 3, 2020 · 2 comments
Labels
no action Nothing else to be done

Comments

@RaviKavaiya
Copy link

Hi once again...

I recently encountered the use of SliverContainer (very useful one!). Can we have option to provide BoxConstraints manually? Actually, I am wrapping a sliver inside it (which is scrollable) and it shrinks in a way that occupies only space taken by the sliver itself.

Is it possible that the SliverContainer fills the available space in parent (just like Expanded in Column) or option to provide manually?

I tried digging the source code. Unfortunately, I am new to such layout things and couldn't understand how these constraints work 😁

Thanks.

@pingbird
Copy link
Owner

pingbird commented Aug 3, 2020

The child of a SliverContainer is a sliver, which sizes itself on the main axis.

There is nothing I can really do here, maybe you wanted a SliverFillRemaining and NestedScrollView?

@RaviKavaiya
Copy link
Author

Thanks for the help. I had no luck. But, the SliverContainer is not the problem. I think I need to explore a bit.

Thanks. ( You can close this issue )

@pingbird pingbird closed this as completed Aug 4, 2020
@pingbird pingbird added the no action Nothing else to be done label Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no action Nothing else to be done
Projects
None yet
Development

No branches or pull requests

2 participants