RCKDesktopShell class
调用方提供并拥有 RCKConvoProvider;壳不创建 Engine 或复制业务选择状态。
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- RCKDesktopShell
Constructors
- RCKDesktopShell({Key? key, RCKConvoConfig? conversationConfig, RCKDesktopConfig config = const RCKDesktopConfig(), RCKChatPageConfig? chatPageConfig, CustomInfoProvider? customInfoProvider, RCKDesktopBubbleBuilders? customChatItemBubbleBuilders, MessageTapCallback? onMessageTap, MessageLinkTapCallback? onMessageLinkTap, MessageDoubleTapCallback? onMessageDoubleTap, MessageLongPressCallback? onMessageLongPress, MessageSwipeCallback? onMessageSwipe, RCKConversationSelectedCallback? onConversationSelected, double? panelBorderRadius, double? panelGap, Color? backgroundColor})
-
const
Properties
- backgroundColor → Color?
-
壳的外框底色(面板圆角外侧、面板间隙、导航栏所在的整片区域);
为空时取 RCKDesktopConfig.shellBackground。
宿主若自带导航栏,应使用同一底色,避免出现色差。
final
- chatPageConfig → RCKChatPageConfig?
-
宿主整体接管聊天面板配置时传入;为空时由壳按 config 组装桌面默认配置。
final
- config → RCKDesktopConfig
-
桌面壳可配置项:外框、两块面板、聊天头部、气泡与空态。
final
- conversationConfig → RCKConvoConfig?
-
final
- customChatItemBubbleBuilders → RCKDesktopBubbleBuilders?
-
final
- customInfoProvider → CustomInfoProvider?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onConversationSelected → RCKConversationSelectedCallback?
-
final
- onMessageDoubleTap → MessageDoubleTapCallback?
-
final
- onMessageLinkTap → MessageLinkTapCallback?
-
final
- onMessageLongPress → MessageLongPressCallback?
-
final
- onMessageSwipe → MessageSwipeCallback?
-
final
- onMessageTap → MessageDoubleTapCallback?
-
final
- panelBorderRadius → double?
-
面板圆角;为空时取 RCKDesktopConfig.panelBorderRadius。
final
- panelGap → double?
-
面板与窗口边缘、面板之间以及面板上下留白;为空时取 RCKDesktopConfig.panelGap。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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