flutter_sticky_headers
flutter_sticky_headers copied to clipboard
Flutter Sticky Headers - Lets you place "sticky headers" into any scrollable content in your Flutter app. No special wrappers or magic required. Maintainer: @slightfoot
```dart // find sliverlist renderobject RenderSliver? renderSliver = context.findAncestorRenderObjectOfType(); // determineStuckOffset double determineStuckOffset() { double dy; try { dy = localToGlobal(Offset(0, -renderSliver.constraints.overlap), ancestor: renderSliver).dy; } catch (e) { // ignore...
> Will layout the header above the content unless the overlapHeaders boolean is set to true. The header will remain stuck to the top of its parent Scrollable content. Is...
I have a list with a date field. I want to group several items in a same header. Is it possible? Example: **Header** content content --> no header **Header** content...
```dart StickyHeader( header: Tappable( child: Container( height: appThemeData.mainPadding * 2.5, padding: EdgeInsets.symmetric( horizontal: appThemeData.mainPadding, vertical: appThemeData.halfPadding, ), color: Colors.white, width: double.infinity, child: Text(title.toUpperCase(), style: textStyle), ), onTap: () { print('StickyHeader...
I first thought StickyHeaderBuilder is a replacement for LisView.Builder but example app use it inside ListView.builder so what's the difference between these 2?
When SliverAppBar inside CustomScrollView is set to be shown only on scroll up (floating: true), header stays on its place e.g. goes below appbar. How to make it shift down...
Currently when scrolling some list and we have a sticky header in it, all content goes bellow header. Expectation is that content goes up until the header and then disappears....
![ubHxK](https://user-images.githubusercontent.com/1261332/56078203-95ec2880-5dfa-11e9-8188-057c2573d22d.png)
As per the title, I want to determine list of headers which is visible on screen. Is there any way to do that?
I created a new flutter project and added > sticky_headers: Afterwards I implemented a list builder that has a ScrollController. I call setState 3 times at a 5 seconds interval...