MessagesView constructor
const
MessagesView({
- required ChatUIKitProfile profile,
- ChatUIKitAppBarModel? appBarModel,
- bool enableAppBar = true,
- Widget? inputBar,
- MessagesViewController? controller,
- MessageItemShowHandler? showMessageItemAvatar,
- MessageItemShowHandler? showMessageItemNickname,
- MessageItemGlobalPositionTapHandler? onItemTap,
- MessagesViewItemLongPressPositionHandler? onItemLongPressHandler,
- MessageItemGlobalPositionTapHandler? onDoubleTap,
- MessageItemTapHandler? onAvatarTap,
- MessageItemTapHandler? onAvatarLongPress,
- MessageItemTapHandler? onNicknameTap,
- Widget? emojiWidget,
- MessageItemBuilder? itemBuilder,
- MessageItemBuilder? alertItemBuilder,
- List<
ChatUIKitEventAction> ? morePressActions, - MessagesViewMorePressHandler? onMoreActionsItemsHandler,
- Widget? replyBarBuilder(
- BuildContext context,
- MessageModel replyMessage
- Widget quoteBuilder(
- BuildContext context,
- QuoteModel model
- MessageItemTapHandler? onErrorBtnTapHandler,
- MessageItemBubbleBuilder? bubbleBuilder,
- MessageItemBuilder? bubbleContentBuilder,
- bool? forceLeft,
- ChatUIKitKeyboardPanelController? inputController,
- Widget? multiSelectBottomBar,
- ChatUIKitViewObserver? viewObserver,
- String? attributes,
- MessageReactionItemTapHandler? onReactionItemTap,
- MessageItemTapHandler? onReactionInfoTap,
- MessageItemBuilder? reactionItemsBuilder,
- MessageItemTapHandler? onThreadItemTap,
- MessageItemBuilder? threadItemBuilder,
- Widget? backgroundWidget,
- Key? key,
构造函数。
Implementation
const MessagesView({
required this.profile,
this.appBarModel,
this.enableAppBar = true,
this.inputBar,
this.controller,
this.showMessageItemAvatar,
this.showMessageItemNickname,
this.onItemTap,
this.onItemLongPressHandler,
this.onDoubleTap,
this.onAvatarTap,
this.onAvatarLongPress,
this.onNicknameTap,
this.emojiWidget,
this.itemBuilder,
this.alertItemBuilder,
this.morePressActions,
this.onMoreActionsItemsHandler,
this.replyBarBuilder,
this.quoteBuilder,
this.onErrorBtnTapHandler,
this.bubbleBuilder,
this.bubbleContentBuilder,
this.forceLeft,
this.inputController,
this.multiSelectBottomBar,
this.viewObserver,
this.attributes,
this.onReactionItemTap,
this.onReactionInfoTap,
this.reactionItemsBuilder,
this.onThreadItemTap,
this.threadItemBuilder,
this.backgroundWidget,
super.key,
});