fluttercommunity / fluttercommunity/flutter_sticky_headers

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

Open
#40 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
1.2k
Forks
130
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.