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

How to know we scroll to header? #32

Open
taipower opened this issue Mar 8, 2020 · 3 comments
Open

How to know we scroll to header? #32

taipower opened this issue Mar 8, 2020 · 3 comments

Comments

@taipower
Copy link

taipower commented Mar 8, 2020

No description provided.

@taipower
Copy link
Author

taipower commented Mar 8, 2020

I want to know index of header.

@shw2ypro
Copy link

Hello
Did you find any solution? @taipower

@hoangsang17th
Copy link

ListView.builder(
   itemCount: 3,
   itemBuilder: (context, index) {
      return StickyHeaderBuilder(
         builder: (context, stuckAmount) {
            stuckAmount = 1.0 - stuckAmount.clamp(0.0, 1.0);
            if(stuckAmount == 1) print('$index is actived');
         return SizedBox();
     },
    content: Text('$index'),);
});

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

3 participants