flutter_sticky_headers
flutter_sticky_headers copied to clipboard
Content should not go bellow header if overlapHeaders: false
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.
This is especially important if a header doesn't have background color (transparent) which currently is not possible to have because of the issue i described.
just use Stack and put a black Container at the top
header: Stack( children: [ Container( decoration: const BoxDecoration( color: Colors.black, ), height: 32, ), Container( decoration: BoxDecoration( color: AppColor.white_opacity10, ), height: 32, alignment: Alignment.center, child: SimText.caption2( 'Example', color: TextColor.captionText, textAlign: TextAlign.center, ), ), ], ),