fluttercommunity/flutter_sticky_headers

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

polRk opened this issue · 0 comments

polRk commented
        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(),
        )