ChatPageWidget class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ChatPageWidget
Constructors
-
ChatPageWidget({Key? key, Color? backgroundColor, Widget? appBarBelowWidget, List<
MoreToolItem> ? morePanelToolList, double showTimeIntervalSecond = 2 * 60, AvatarBorderMode avatarBorderMode = AvatarBorderMode.rect, double messageDirectDistance = 18, double fixedAutoScrollBottomThreshold = 50, Widget? bottomInputAreaHeaderWidget, BottomPanelConfig? bottomPanelConfig, BuildMessageItemResult? messageItemBuilder(Map<String, dynamic> messageData, List<Map< messageList, bool isSelf)?, Widget? avatarBuilder(Map<String, dynamic> >String, dynamic> userProfile, bool isSelf)?}) -
const
Properties
- appBarBelowWidget → Widget?
-
final
- avatarBorderMode → AvatarBorderMode
-
显示头像的模式。圆心 / 圆角
final
-
avatarBuilder
→ Widget? Function(Map<
String, dynamic> userProfile, bool isSelf)? -
用户默认头像构建器。正常情况下聊天会加载你设置给腾讯IM的用户的头像信息,如果未设置或加载失败的时候,将展示这个构建进去的默认头像
final
- backgroundColor → Color?
-
final
-
final
- bottomInputAreaHeaderWidget → Widget?
-
final
- bottomPanelConfig → BottomPanelConfig?
-
底部输入面板各项参数配置
final
- fixedAutoScrollBottomThreshold → double
-
认为距离底部的滚动距离超过多少后,就要定格滚动了,不再允许执行自动滚动了。且底部输入法区域弹起时不会一并顶起聊天消息列表区域
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- messageDirectDistance → double
-
每条消息之间的距离
final
-
messageItemBuilder
→ BuildMessageItemResult? Function(Map<
String, dynamic> messageData, List<Map< messageList, bool isSelf)?String, dynamic> > -
消息项构建器
final
-
morePanelToolList
→ List<
MoreToolItem> ? -
更多操作面板,操作项列表
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showTimeIntervalSecond → double
-
显示聊天消息的时间信息的间隔秒数,每隔多久再次显示时间信息
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
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