MessageItemBuilder

Introduction

Message item builder, can customize partial message item for different types or the layout for the whole line.

Parameter introduction

textMessageItemBuilder

  • Parameter type : Widget? Function( V2TimMessage message, bool isShowJump, VoidCallback clearJump)

  • Supported Platform: All

  • Parameter description : text message builder

textReplyMessageItemBuilder

  • Parameter type : Widget? Function( V2TimMessage message, bool isShowJump, VoidCallback clearJump)

  • Supported Platform: All

  • Parameter description : text message builder for reply message

customMessageItemBuilder

  • Parameter type : Widget? Function( V2TimMessage message, bool isShowJump, VoidCallback clearJump)

  • Supported Platform: All

  • Parameter description : custom message builder

imageMessageItemBuilder

  • Parameter type : Widget? Function( V2TimMessage message, bool isShowJump, VoidCallback clearJump)

  • Supported Platform: All

  • Parameter description : image message builder

soundMessageItemBuilder

  • Parameter type : Widget? Function( V2TimMessage message, bool isShowJump, VoidCallback clearJump)

  • Supported Platform: All

  • Parameter description : sound message builder

videoMessageItemBuilder

  • Parameter type : Widget? Function( V2TimMessage message, bool isShowJump, VoidCallback clearJump)

  • Supported Platform: All

  • Parameter description : video message builder

fileMessageItemBuilder

  • Parameter type : Widget? Function( V2TimMessage message, bool isShowJump, VoidCallback clearJump)

  • Supported Platform: All

  • Parameter description : file message builder

locationMessageItemBuilder

faceMessageItemBuilder

  • Parameter type : Widget? Function( V2TimMessage message, bool isShowJump, VoidCallback clearJump)

  • Supported Platform: All

  • Parameter description : face message, like emoji, message builder

groupTipsMessageItemBuilder

  • Parameter type : Widget? Function( V2TimMessage message, bool isShowJump, VoidCallback clearJump)

  • Supported Platform: All

  • Parameter description : group tips message builder

mergerMessageItemBuilder

  • Parameter type : Widget? Function( V2TimMessage message, bool isShowJump, VoidCallback clearJump)

  • Supported Platform: All

  • Parameter description : merger message builder

groupTRTCTipsItemBuilder

  • Parameter type : Widget? Function( V2TimMessage message, bool isShowJump, VoidCallback clearJump)

  • Supported Platform: All

  • Parameter description : group calling message builder, show without avatar and nickname

messageRowBuilder

  • Parameter type : Widget? Function(V2TimMessage message, Widget messageWidget, Function onScrollToIndex, bool isNeedShowJumpStatus, VoidCallback clearJumpStatus, Function onScrollToIndexBegin)

  • Supported Platform: All

  • Parameter description : The builder for the whole message line, expect for those message type without avatar and nickname. You can only re-define the message types you need, returns null means using default row layout.

results matching ""

    No results matching ""