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

SliverAppBar with expanded height dependent on the children #65

Open
logic-and-math opened this issue Oct 16, 2022 · 4 comments
Open

SliverAppBar with expanded height dependent on the children #65

logic-and-math opened this issue Oct 16, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@logic-and-math
Copy link

Hi, thank you for the package!

Is it possible to achieve a pinned silverappbar with the height depending on its children with this package?

What I am trying to achieve is the first example on here: https://api.flutter.dev/flutter/widgets/NestedScrollView-class.html but such that the appbar is some widget whose height is unknown(and a tabbar on the bottom) until layout/render. I know the height of the tabs, that is the collapsed height.

Thank you!

@Kavantix
Copy link
Owner

Kavantix commented Feb 1, 2023

Hi @logic-and-math this is currently not supported by the package, a PR would be welcome though!

@Kavantix Kavantix added the enhancement New feature or request label Feb 1, 2023
@hamishjohnson
Copy link

hamishjohnson commented Mar 1, 2024

I'd like this too. In my case I want to have a pinned list at the top.

I'd contribute but I don't understand the inner workings of slivers. Do you have any pointers?

@Kavantix
Copy link
Owner

Kavantix commented Mar 2, 2024

@hamishjohnson what exactly do you mean with a pinned list?

@hamishjohnson
Copy link

hamishjohnson commented Mar 6, 2024

@Kavantix I mean a SliverList that is pinned at the top, so it has dynamic size but stays in the viewport as the content below is scrolled. And I'd like to limit it to a max-height before it becomes scrollable.

I can get something similar with SliverFillRemaining in the bottom but it has some problematic side effects

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

No branches or pull requests

3 participants