TIMUIKitProfile class

Inheritance

Constructors

TIMUIKitProfile({Key? key, required String userID, @Deprecated("[operationListBuilder] and [bottomOperationBuilder] merged into [builder], please use it instead") Widget operationListBuilder(BuildContext context, V2TimFriendInfo friendInfo, V2TimConversation conversation, int friendType, bool isMute)?, @Deprecated("[operationListBuilder] and [bottomOperationBuilder] merged into [builder], please use it instead") Widget bottomOperationBuilder(BuildContext context, V2TimFriendInfo? friendInfo, V2TimConversation? conversation, int friendType)?, @Deprecated("This widget will no longer shows the personal info card and can not jump to personal info page automatically, please navigate to your custom personal info page manually and directly, you may refer to our demo") void handleProfileDetailCardTap(BuildContext context, V2TimUserFullInfo? userFullInfo)?, @Deprecated("This widget will no longer shows the personal info card and can not jump to personal info page automatically, please navigate to your custom personal info page manually and directly, you may refer to our demo") bool canJumpToPersonalProfile = false, @Deprecated("This widget will no longer shows the personal info card and will not support to change self avatar, please navigate to your custom personal info page manually and directly, you may refer to our demo") OnSelfAvatarTap? onSelfAvatarTap, TIMUIKitProfileController? controller, ProfileWidgetBuilder? profileWidgetBuilder, List<ProfileWidgetEnum>? profileWidgetsOrder, ProfileBuilder? builder, bool isSelf = false, ProfileLifeCycle? lifeCycle, bool smallCardMode = false})
const

Properties

bottomOperationBuilder Widget Function(BuildContext context, V2TimFriendInfo? friendInfo, V2TimConversation? conversation, int friendType)?
Deprecated: The builder for custom bottom operation area. operationListBuilder and bottomOperationBuilder merged into builder, please use it instead.
final
builder ProfileBuilder?
The builder for the whole profile page, you can use this to customize all the element here. Mentioned: If you use this builder, profileWidgetBuilder and profileWidgetsOrder will no longer works.
final
canJumpToPersonalProfile bool
Deprecated: If allows jump to personal profiler page. This widget will no longer shows the personal info card and can not jump to personal info page automatically, please navigate to your custom personal info page manually and directly, you may refer to our demo.
final
controller TIMUIKitProfileController?
Profile Controller
final
handleProfileDetailCardTap → void Function(BuildContext context, V2TimUserFullInfo? userFullInfo)?
Deprecated: Callback when clicking profile detail card. This widget will no longer shows the personal info card and can not jump to personal info page automatically, please navigate to your custom personal info page manually and directly, you may refer to our demo.
final
hashCode int
The hash code for this object.
no setterinherited
isSelf bool
Whether the specify user is current logged in user. Default: false.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lifeCycle ProfileLifeCycle?
The life cycle hooks for user profile business logic
final
onSelfAvatarTap OnSelfAvatarTap?
Deprecated: The callback when clicking self avatar. This widget will no longer shows the personal info card and will not support to change self avatar, please navigate to your custom personal info page manually and directly, you may refer to our demo.
final
operationListBuilder Widget Function(BuildContext context, V2TimFriendInfo friendInfo, V2TimConversation conversation, int friendType, bool isMute)?
Deprecated: the builder for custom operation list. operationListBuilder and bottomOperationBuilder merged into builder, please use it instead.
final
profileWidgetBuilder ProfileWidgetBuilder?
[If you tend to customize the profile page, use profileWidgetsBuilder with profileWidgetsOrder as priority.] The builder for each widgets in profile page, you can customize some of it by pass your own widget into here. Or, you can add your custom widget to the three custom widgets.
final
profileWidgetsOrder List<ProfileWidgetEnum>?
[If you tend to customize the profile page, use profileWidgetsBuilder with profileWidgetsOrder as priority.] If the default widget order can not meet you needs, you may change the order by this array with widget enum.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
smallCardMode bool
Whether use the small card mode on Desktop. Usually shows on the Chat page.
final
userID String
user ID
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited