RCKConvoPage class

新版对话列表页面,支持完整的配置和自定义构建器

Inheritance

Constructors

RCKConvoPage.new({Key? key, RCKConvoConfig? config, ConvoAppBarBuilder? appBarBuilder, ItemBuilder? itemBuilder, AvatarBuilder? avatarBuilder, TitleBuilder? titleBuilder, LastMessageBuilder? lastMessageBuilder, TimeBuilder? timeBuilder, UnreadBadgeBuilder? unreadBadgeBuilder, Widget tipBuilder(BuildContext context)?, Widget emptyBuilder(BuildContext context)?, ItemOnTap? onItemTap, ItemOnLongPress? onItemLongPress, void onSearchTap(BuildContext context)?})

Properties

appBarBuilder ConvoAppBarBuilder?
自定义 AppBar 构建器
final
avatarBuilder AvatarBuilder?
头像构建器
final
config RCKConvoConfig
整体配置对象
final
emptyBuilder Widget Function(BuildContext context)?
空列表构建器
final
hashCode int
The hash code for this object.
no setterinherited
itemBuilder ItemBuilder?
对话单元格构建器
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lastMessageBuilder LastMessageBuilder?
最后一条消息构建器
final
onItemLongPress ItemOnLongPress?
单元格长按回调
final
onItemTap ItemOnTap?
单元格点击回调
final
onSearchTap → void Function(BuildContext context)?
搜索框点击回调
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeBuilder TimeBuilder?
时间构建器
final
tipBuilder Widget Function(BuildContext context)?
顶部提示构建器,显示在搜索框上方
final
titleBuilder TitleBuilder?
标题构建器
final
unreadBadgeBuilder UnreadBadgeBuilder?
未读消息角标构建器
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<RCKConvoPage>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited