TencentCloudWhiteboardTools class
白板工具栏组件
支持自定义各种颜色配置,如果不传入则使用主题色。
使用示例:
TencentCloudWhiteboardTools(
whiteboardController: controller,
toolsController: toolsController,
// 自定义折叠状态样式
collapsedBackgroundColor: Colors.blue,
collapsedIconColor: Colors.white,
// 自定义展开状态样式
expandedBackgroundColor: Colors.blue,
// 自定义高亮工具项样式
highlightedBackgroundColor: Colors.lightBlue,
highlightedIconColor: Colors.white,
// 自定义普通工具项样式
normalIconColor: Colors.grey,
// 自定义折叠按钮样式
collapseIconColor: Colors.grey,
// 自定义画笔面板样式
brushPanelBackgroundColor: Colors.blue,
brushPanelActiveColor: Colors.lightBlue,
brushPanelTextColor: Colors.white,
)
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- TencentCloudWhiteboardTools
Constructors
- TencentCloudWhiteboardTools({Key? key, required TencentCloudWhiteboardController whiteboardController, required TencentCloudWhiteboardToolsController toolsController, EdgeInsetsGeometry? contentPadding, EdgeInsetsGeometry? toolsItemPadding, Size? toolsItemSize, EdgeInsetsGeometry? collapseItemPadding, Size? collapseIconSize, Color? backgroundColor, Color? activeColor, Color? iconColor, Color? collapsedBackgroundColor, Color? collapsedIconColor, Color? expandedBackgroundColor, Color? highlightedBackgroundColor, Color? highlightedIconColor, Color? normalIconColor, Color? collapseIconColor, Color? brushPanelBackgroundColor, Color? brushPanelActiveColor, Color? brushPanelTextColor})
-
const
Properties
- activeColor → Color?
-
激活色(已废弃,使用 highlightedBackgroundColor)
final
- backgroundColor → Color?
-
背景色(已废弃,使用更具体的颜色参数)
final
- brushPanelActiveColor → Color?
-
画笔面板激活色
final
- brushPanelBackgroundColor → Color?
-
画笔面板背景色
final
- brushPanelTextColor → Color?
-
画笔面板文字颜色
final
- collapsedBackgroundColor → Color?
-
折叠状态背景色
final
- collapsedIconColor → Color?
-
折叠状态图标颜色
final
- collapseIconColor → Color?
-
折叠按钮图标颜色
final
- collapseIconSize → Size?
-
final
- collapseItemPadding → EdgeInsetsGeometry?
-
final
- contentPadding → EdgeInsetsGeometry?
-
final
- expandedBackgroundColor → Color?
-
展开状态背景色
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlightedBackgroundColor → Color?
-
高亮工具项背景色
final
- highlightedIconColor → Color?
-
高亮工具项图标颜色
final
- iconColor → Color?
-
图标颜色(已废弃,使用更具体的图标颜色参数)
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- normalIconColor → Color?
-
普通工具项图标颜色
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toolsController → TencentCloudWhiteboardToolsController
-
final
- toolsItemPadding → EdgeInsetsGeometry?
-
final
- toolsItemSize → Size?
-
final
- whiteboardController → TencentCloudWhiteboardController
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _VerticalToolbarState -
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