TDRadio class

单选框按钮,继承自TDCheckbox,字段含义与父类一致

Inheritance

Constructors

TDRadio({String? id, Key? key, String? title, String? subTitle, bool enable = true, int subTitleMaxLine = 1, int titleMaxLine = 1, Color? checkedColor, ContentBuilder? customContentBuilder, double? spacing, bool? cardMode, bool? showDivider, TDCheckBoxSize size = TDCheckBoxSize.small, TDRadioStyle radioStyle = TDRadioStyle.circle, TDContentDirection contentDirection = TDContentDirection.right, IconBuilder? customIconBuilder})
const

Properties

backgroundColor Color?
背景颜色
finalinherited
cardMode bool
展示为卡片模式
finalinherited
checked bool
选中状态。默认为false 当FuiCheckBox嵌入到FuiCheckBoxGroup的时候,这个值表示初始状态,后续的状态会由Group管理
finalinherited
contentDirection TDContentDirection
文字相对icon的方位
finalinherited
customContentBuilder ContentBuilder?
完全自定义内容
finalinherited
customIconBuilder IconBuilder?
自定义Checkbox显示样式
finalinherited
enable bool
不可用
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
id 当FuiCheckBox嵌入到FuiCheckBoxGroup内时,这个值需要赋值,否则不会被纳入Group管理
finalinherited
insetSpacing double?
文字和非图标侧的距离
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onCheckBoxChanged OnCheckValueChanged?
切换监听
finalinherited
radioStyle TDRadioStyle
单选框按钮样式
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDivider bool
是否展示分割线
finalinherited
size TDCheckBoxSize
复选框大小
finalinherited
spacing double?
icon和文字的距离
finalinherited
style TDCheckboxStyle?
复选框样式:圆形或方形
finalinherited
subTitle String?
辅助文字
finalinherited
subTitleMaxLine int?
辅助文字的行数
finalinherited
title String?
文本
finalinherited
titleMaxLine int?
标题的行数
finalinherited

Methods

buildDefaultIcon(BuildContext context, TDCheckboxGroupState? groupState, bool isSelected) Widget
默认的checkBox icon
override
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