cdx_comments library

A Flutter package for managing comments with support for replies, likes, and reporting.

Classes

CdxCommentsLocalizations
Callers can lookup localized strings with an instance of CdxCommentsLocalizations returned by CdxCommentsLocalizations.of(context).
Comment
Represents a comment with support for nested replies.
CommentBottomSheet
CommentConfig
Configuration for the comments module.
CommentController
Controller for managing comment operations.
CommentProvider
Provider for managing comment state and UI interactions.
CommentReportProvider
Provider for managing the comment/user reporting flow.
CommentsAppActions
Callbacks for app-level actions like showing snackbars and dialogs.
CommentService
Service interface for comment operations
CommentsTextStyle
Text style configuration for comments widgets.
CommentsTheme
Theme configuration for the comments package.
CommentTile
CommentValidator
Validator for comment content.
DateFormatter
Utility class for formatting dates.
DefaultCommentsAppActions
Default implementation of CommentsAppActions using Flutter's standard widgets.
DefaultCommentsTextStyle
Default implementation of CommentsTextStyle using Theme.of.
DefaultCommentsTheme
Default implementation of CommentsTheme that uses Theme.of.
FeatureChecker
Interface for checking module features and insights
LineDivider
A simple horizontal divider widget.
PrimaryButton
A primary action button widget.
ReportCommentBottomSheet
ReportReason
A reason for reporting a comment.
UserInfo
Information about the current user.

Enums

ModuleFeature
Features that can be enabled/disabled for the comments module
ModuleInsight
Insights that can be shown/hidden for the comments module
ReportStep
Steps in the report flow.

Constants

reportReasons → const List<ReportReason>
Predefined list of report reasons.