ProfileWidgetBuilder
Introduction
The builder for the whole profile page, you can use this to customize all the element here.
Parameter introduction
operationDivider
Parameter type : Widget Function()
Supported Platform: All
- Parameter description : The divider between sets of profile widget.
remarkBar
Parameter type : Widget Function(String remark, Function()? handleTap)
Supported Platform: All
- Parameter description : The setting of remark for a specific user.
addToBlockListBar
Parameter type : Widget Function(bool isAsBlocked, Function(bool value)? onChange)
Supported Platform: All
- Parameter description : The switch of if add another user to block list. This will not shows when friendship relation not exist as default.
pinConversationBar
Parameter type : Widget Function(bool isPinned, Function(bool value)? onChange)
Supported Platform: All
- Parameter description : The switch of if pin the one-to-one conversation to the top of the conversation list. This will not shows when friendship relation not exist as default.This will not shows when friendship relation not exist as default.
messageMute
Parameter type : Widget Function(bool isMute, Function(bool value)? onChange)
Supported Platform: All
- Parameter description : The switch of if mute the message notification from a specific user. This will not shows when friendship relation not exist as default.
operationItem
Parameter type : Widget Function({ required String operationName, required String type, bool? operationValue, String? operationText, void Function(bool newValue)? onSwitchChange, })
Supported Platform: All
- Parameter description : Override the default operation item style for un-customized profile widget.
searchBar
Parameter type : Widget Function(V2TimConversation conversation)
Supported Platform: All
- Parameter description : The entrance to search page, please set the
onTap
callback yourself, to the search page with conversation ID. You can develop it withTIMUIKitProfileWidget.searchBar
.
portraitBar
Parameter type : Widget Function(V2TimUserFullInfo? userInfo)
Supported Platform: All
- Parameter description : The bar shows the portrait.
nicknameBar
Parameter type : Widget Function(String nickName)
Supported Platform: All
- Parameter description : The bar shows the nickname of a specific user.
userAccountBar
Parameter type : Widget Function(String userAccount)
Supported Platform: All
- Parameter description : The bar shows the user account of a specific user.
signatureBar
Parameter type : Widget Function(String signature)
Supported Platform: All
- Parameter description : The bar shows the signature of a specific user.
genderBar
Parameter type : Widget Function(int gender)
Supported Platform: All
- Parameter description : The bar shows the gender of a specific user. 1 represent male, 2 represent female.
birthdayBar
Parameter type : Widget Function(int? birthday)
Supported Platform: All
- Parameter description : The bar shows the birthday of a specific user. Int like "19981111", means November 11, 1998.
userInfoCard
Parameter type : Widget Function(V2TimUserFullInfo? userInfo)
Supported Platform: All
- Parameter description : The card shows the user info of a specific user.
addAndDeleteArea
Parameter type : Widget Function(V2TimFriendInfo friendInfo, V2TimConversation conversation, int friendType, bool isDisturb)
Supported Platform: All
- Parameter description : The area shows the buttons, contains "Send message", "Voice/Video Call", "Delete friend" when has the friend relationship, while contains "Add friend" when no relationship exists, as default.
customBuilderOne
Parameter type : Widget Function(bool isFriend, V2TimFriendInfo friendInfo, V2TimConversation conversation)
Supported Platform: All
- Parameter description : Custom area, you may define send message, make calling, search or anything you want here.
customBuilderTwo
Parameter type : Widget Function(bool isFriend, V2TimFriendInfo friendInfo, V2TimConversation conversation)
Supported Platform: All
- Parameter description : Custom area, you may define send message, make calling, search or anything you want here.
customBuilderThree
Parameter type : Widget Function(bool isFriend, V2TimFriendInfo friendInfo, V2TimConversation conversation)
Supported Platform: All
- Parameter description : Custom area, you may define send message, make calling, search or anything you want here.
customBuilderFour
Parameter type : Widget Function(bool isFriend, V2TimFriendInfo friendInfo, V2TimConversation conversation)
Supported Platform: All
- Parameter description : Custom area, you may define send message, make calling, search or anything you want here.
customBuilderFive
Parameter type : Widget Function(bool isFriend, V2TimFriendInfo friendInfo, V2TimConversation conversation)
Supported Platform: All
- Parameter description : Custom area, you may define send message, make calling, search or anything you want here.