ConversationsView constructor

const ConversationsView({
  1. ConversationItemBuilder? itemBuilder,
  2. List<Widget>? beforeWidgets,
  3. List<Widget>? afterWidgets,
  4. void onSearchTap(
    1. List<ConversationItemModel> data
    )?,
  5. String? searchBarHideText,
  6. Widget? emptyBackground,
  7. void onItemTap(
    1. BuildContext context,
    2. ConversationItemModel info
    )?,
  8. ConversationsViewItemLongPressHandler? onItemLongPressHandler,
  9. ChatUIKitAppBarModel? appBarModel,
  10. ConversationListViewController? controller,
  11. bool enableAppBar = true,
  12. bool enableSearchBar = true,
  13. String? attributes,
  14. ChatUIKitViewObserver? viewObserver,
  15. ChatUIKitMoreActionsBuilder? moreActionsBuilder,
  16. bool enablePinHighlight = true,
  17. Widget? backgroundWidget,
  18. Key? key,
})

会话列表构造方法,如果需要自定义会话列表可以使用这个方法。

Implementation

const ConversationsView({
  this.itemBuilder,
  this.beforeWidgets,
  this.afterWidgets,
  this.onSearchTap,
  this.searchBarHideText,
  this.emptyBackground,
  this.onItemTap,
  this.onItemLongPressHandler,
  this.appBarModel,
  this.controller,
  this.enableAppBar = true,
  this.enableSearchBar = true,
  this.attributes,
  this.viewObserver,
  this.moreActionsBuilder,
  this.enablePinHighlight = true,
  this.backgroundWidget,
  super.key,
});