UFUCheckbox class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- UFUCheckbox
Constructors
-
UFUCheckbox.new({bool disabled = false, bool? isTextClickable = true, bool? selected = false, String? text, UFUTextSize? textSize = UFUTextSize.heading4, Color? textColor, UFUFontWeight? fontWeight = UFUFontWeight.regular, Color? borderColor, Color? color, UFUPosition? position = UFUPosition.start, Color? checkColor, double? height = 17.0, double? width = 17.0, ValueChanged<
bool> ? onTap, EdgeInsetsGeometry? padding, double separatorWidth = 8.5, Key? key}) -
const
Properties
- borderColor → Color?
-
Defines borderColor
AppTheme.themeColors.text
of a checkbox.final - checkColor → Color?
-
Defines checkColor
AppTheme.themeColors.base
of a checkbox.final - color → Color?
-
Defines checkBoxColor
AppTheme.themeColors.primary
of a checkbox.final - disabled → bool
-
Defines enabled or disabled of a checkbox.
final
- fontWeight → UFUFontWeight?
-
Defines text fontFamily
UFUFontFamily.roboto
of a checkbox. Defines text fontWeightUFUFontWeight.regular of a checkbox.final - hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
Defines height of a checkbox.
final
- isTextClickable → bool?
-
Defines text is clickable or not of a checkbox.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onTap
→ ValueChanged<
bool> ? -
Defines onTap function on text of a checkbox.
final
- padding → EdgeInsetsGeometry?
-
The amount of space by which to inset the child.
final
- position → UFUPosition?
-
Defines checkbox position UFUPosition.start with related to text of a checkbox.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool?
-
Defines selection of a checkbox.
final
- separatorWidth → double
-
separatorWidth can be used to give space between checkbox and title, default width is 8.5
final
- text → String?
-
Defines text of a checkbox.
final
- textColor → Color?
-
Defines textColor
AppTheme.themeColors.text
of a checkbox.final - textSize → UFUTextSize?
-
Defines text textSizeUFUTextSize.heading4 of a checkbox.
final
- width → double?
-
Defines width of a checkbox.
final
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