ChatPageWidget constructor

const ChatPageWidget({
  1. Key? key,
  2. Color? backgroundColor,
  3. Widget? appBarBelowWidget,
  4. List<MoreToolItem>? morePanelToolList,
  5. double showTimeIntervalSecond = 2 * 60,
  6. AvatarBorderMode avatarBorderMode = AvatarBorderMode.rect,
  7. double messageDirectDistance = 18,
  8. double fixedAutoScrollBottomThreshold = 50,
  9. Widget? bottomInputAreaHeaderWidget,
  10. Widget? bottomInputAreaFooterWidget,
  11. BottomPanelConfig? bottomPanelConfig,
  12. bool? showMessageItemNickName,
  13. BuildMessageItemResult? messageItemBuilder(
    1. Map<String, dynamic> messageData,
    2. List<Map<String, dynamic>> messageList,
    3. bool isSelf
    )?,
  14. Widget? avatarBuilder(
    1. Map<String, dynamic> userProfile,
    2. bool isSelf
    )?,
  15. dynamic onReceiveNewMessage(
    1. Map<String, dynamic> message
    )?,
})

Implementation

const ChatPageWidget({
  super.key,
  this.backgroundColor,
  this.appBarBelowWidget,
  this.morePanelToolList,
  this.showTimeIntervalSecond = 2 * 60,
  this.avatarBorderMode = AvatarBorderMode.rect,
  this.messageDirectDistance = 18,
  this.fixedAutoScrollBottomThreshold = 50,
  this.bottomInputAreaHeaderWidget,
  this.bottomInputAreaFooterWidget,
  this.bottomPanelConfig,
  this.showMessageItemNickName,
  this.messageItemBuilder,
  this.avatarBuilder,
  this.onReceiveNewMessage,
});