comment_tree icon indicating copy to clipboard operation
comment_tree copied to clipboard

Still draws the line if there are no replies

Open westlinkin opened this issue 3 years ago • 6 comments

Great library!

But if the root comment has no replies, the lib will draw the line to the next root comment. But if there are replies, the line end with the last reply, won't draw to the next root comment.

I think if there are no replies, it shouldn't draw the line at all.

Thanks.

westlinkin avatar Mar 29 '22 09:03 westlinkin

agree

bugrevealingbme avatar Jun 09 '22 10:06 bugrevealingbme

Did you find any solution to this issue?

immi420 avatar Jul 30 '22 18:07 immi420

Did you find any solution to this issue?

I updated the root_comment_widget myself, passed in a boolean value called hasReplies, if it is true, do not draw anything inside paint function of RootPainter.

This project seems out of maintaining, so I didn't bother submitting the PR.

westlinkin avatar Aug 02 '22 01:08 westlinkin

i did a similar thing and replaced the line color to Transparent when there's no replies and that worked

immi420 avatar Aug 09 '22 09:08 immi420

        treeThemeData: TreeThemeData(
          lineColor: Colors.green[500]!,
          lineWidth: comment.replies!.isEmpty ? 0 : 3,
        ),

raduungurean avatar Sep 15 '23 07:09 raduungurean

@westlinkin @raduungurean

hi, do you know how can we connect root avatars together? like with another timelines

pishguy avatar Oct 06 '23 21:10 pishguy