do not wrap custom channel preview builder to avoid weird behaviour
This commit is contained in:
@@ -316,28 +316,9 @@ class _ChannelListViewState extends State<ChannelListView>
|
|||||||
builder: (context) {
|
builder: (context) {
|
||||||
Widget child;
|
Widget child;
|
||||||
if (widget.channelPreviewBuilder != null) {
|
if (widget.channelPreviewBuilder != null) {
|
||||||
child = Stack(
|
child = widget.channelPreviewBuilder(
|
||||||
children: [
|
context,
|
||||||
widget.channelPreviewBuilder(
|
channel,
|
||||||
context,
|
|
||||||
channel,
|
|
||||||
),
|
|
||||||
Positioned.fill(
|
|
||||||
child: Material(
|
|
||||||
color: Colors.transparent,
|
|
||||||
child: InkWell(
|
|
||||||
onTap: () {
|
|
||||||
onTap(channel, widget.channelWidget);
|
|
||||||
},
|
|
||||||
onLongPress: widget.onChannelLongPress != null
|
|
||||||
? () {
|
|
||||||
widget.onChannelLongPress(channel);
|
|
||||||
}
|
|
||||||
: null,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
child = ChannelPreview(
|
child = ChannelPreview(
|
||||||
|
|||||||
Reference in New Issue
Block a user