flutter_sticky_headers icon indicating copy to clipboard operation
flutter_sticky_headers copied to clipboard

Content should not go bellow header if overlapHeaders: false

Open fralways opened this issue 5 years ago • 1 comments

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.

fralways avatar Feb 20 '20 19:02 fralways

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, ), ), ], ),

stngcoding avatar Feb 16 '24 04:02 stngcoding