Search packages, repositories and app categories

comment_tree cover
Package detailsv0.3.0

comment_tree

Render comment tree like facebook comment - reply.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
819
Likes
188
Pub points
150

Install package

flutter pub add comment_tree

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The comment_tree package enables developers to render hierarchical comment structures similar to Facebook's comment system, supporting nested replies. Built with Flutter, it provides a clean, customizable UI for displaying threaded conversations across multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. The package simplifies the implementation of interactive comment trees with built-in support for expanding/collapsing replies and smooth animations. It is ideal for social media apps, forums, or chat interfaces where users need to engage in layered discussions. The source code is publicly available on GitHub for transparency and contribution.

Use cases

  • Social media comment sections
  • Forum thread displays
  • Interactive chat applications
  • Nested reply systems
  • User engagement features
  • Community discussion boards

Key features

  • Nested comment rendering
  • Expandable/collapsible replies
  • Cross-platform compatibility
  • Customizable UI components
  • Smooth animations
  • GitHub-hosted open-source code

Suitable for

  • Flutter developers building social features
  • Apps requiring threaded conversations
  • Projects with user-generated content
  • Developers seeking reusable comment UI
  • Teams wanting open-source solutions

Considerations

  • Requires custom styling for branding
  • May need performance optimization for large trees
  • Limited built-in moderation tools
  • Depends on external state management
  • Not designed for real-time sync
  • Basic interaction handling without backend integration

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

comment_tree

Pub Package
Star on GitHub style: effective dart MIT License

A new Flutter package.

Getting Started

CommentTreeWidget<Comment, Comment>(
      ...
      treeThemeData: TreeThemeData(
        lineColor: Colors.green[500],
        lineWidth: 3
      ),
      avatarRoot: (context, data) => PreferredSize(...),
      avatarChild: (context, data) => PreferredSize(...),
      contentChild: (context, data) {
          return ...;
      },
      contentRoot: (context, data) {
         return ...;
      })

Design

Demo

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.