Youtube Comment Tree Package

A package that provides a widget used to replicate the comment tree view in the new youtube app

Features

This package adds a link between the parent widgets and it's children widgets

Getting started


dependencies:
  comment_tree: <latest_version>

Usage

First import:

import 'package:youtube_comment_tree/youtube_comment_tree.dart';


YoutubeCommentTreeWidget(
    treeColor: Theme.of(context).colorScheme.primaryContainer,
    parent: Comment(comment: subCommentText),
    children: [
    Comment(comment: subCommentText),
    Comment(comment: subCommentText),
    Comment(),
    ],
),

Which would look like this:

screen