flutter_sticky_headers icon indicating copy to clipboard operation
flutter_sticky_headers copied to clipboard

Can not add tap event handler on header, if content is SizedBox.shrink()

Open polRk opened this issue 5 years ago • 0 comments

        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 - Tappable.onTap()');
            },
          ),
          content: SizedBox.shrink(),
        )

polRk avatar Oct 14 '20 08:10 polRk