FunctionRadioButton class

create_user: zhengzaihong email:1096877329@qq.com create_date: 2021/5/22 create_time: 17:11 describe: 封装一个功能按钮组件 背景切换 功能组件 顶层需要FunctionContainer包装 解决系统自带的 Radio 的一些问题,此按钮组件不支持 多选功能,切勿设置。 待完善...

Inheritance
Available Extensions

Constructors

FunctionRadioButton({String title = "", int index = 0, required Widget checkedIconWidget, required Widget unCheckedWidget, TextStyle checkedTextStyle = const TextStyle(color: Color(0xffFF5400), fontSize: 12), TextStyle unCheckTextStyle = const TextStyle(color: Color(0xff000000), fontSize: 12), bool radioStart = true, double width = 100, double height = 40, EdgeInsetsGeometry padding = const EdgeInsets.all(0), EdgeInsetsGeometry margin = const EdgeInsets.all(0), AlignmentGeometry alignment = Alignment.center, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.min, Color highlightColor = Colors.transparent, Color hoverColor = Colors.transparent, Color? focusColor, Color? splashColor, double? radius, Key? key})
const

Properties

alignment AlignmentGeometry
final
checkedIconWidget Widget
外部传入的图片样式组件
final
checkedTextStyle TextStyle
final
crossAxisAlignment CrossAxisAlignment
final
focusColor Color?
final
hashCode int
The hash code for this object.
no setterinherited
height double
final
highlightColor Color
final
hoverColor Color
final
index int
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mainAxisAlignment MainAxisAlignment
final
mainAxisSize MainAxisSize
final
margin EdgeInsetsGeometry
final
padding EdgeInsetsGeometry
final
radioStart bool
final
radius double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splashColor Color?
final
title String
final
unCheckedWidget Widget
final
unCheckTextStyle TextStyle
final
width double
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _FunctionRadioButtonState
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}) 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