TdRawButton class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- TdRawButton
Constructors
-
TdRawButton({Key? key, required VoidCallback onPressed, bool disabled = false, Alignment? alignment, double? width, double? height, EdgeInsets? padding, BorderRadius? borderRadius, List<
BoxShadow> ? boxShadow, TextStyle? textStyle, IconThemeData? iconTheme, required Color textColor, Color? actionTextColor, Color? disabledTextColor, required Color backgroundColor, Color? actionBackgroundColor, Color? disabledBackgroundColor, Color? borderColor, Color? actionBorderColor, Color? disabledBorderColor, required Widget child}) -
const
Properties
- actionBackgroundColor → Color?
-
激活时背景颜色
final
- actionBorderColor → Color?
-
激活时边框颜色
final
- actionTextColor → Color?
-
激活时文本颜色
final
- alignment → Alignment?
-
对齐方式
final
- backgroundColor → Color
-
背景颜色
final
- borderColor → Color?
-
边框颜色
final
- borderRadius → BorderRadius?
-
边框圆角
final
-
boxShadow
→ List<
BoxShadow> ? -
边框阴影
final
- child → Widget
-
子元素
final
- disabled → bool
-
是否禁用按钮
final
- disabledBackgroundColor → Color?
-
禁用时背景颜色
final
- disabledBorderColor → Color?
-
禁用时边框颜色
final
- disabledTextColor → Color?
-
禁用时文本颜色
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
高度尺寸
final
- iconTheme → IconThemeData?
-
图标样式
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onPressed → VoidCallback
-
点击事件
final
- padding → EdgeInsets?
-
内边距
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textColor → Color
-
文字颜色
final
- textStyle → TextStyle?
-
字体样式
final
- width → double?
-
宽度尺寸
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< TdRawButton> -
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