BeuiCheckbox class

A checkbox with an animated check/indeterminate draw — the Flutter port of beUI's checkbox.

The mark strokes itself on (a CustomPaint path-draw), the box cross-fades its colour over 200ms, and pressing scales the box (SPRING_PRESS). Supports an indeterminate (mixed) state with its own bar mark.

Controlled only (matching the source and the AGENTS.md rule): pass value and handle onChanged; there is no internal state.

Reduced motion makes the mark appear instantly (opacity only — no scale, no path-draw) and drops the press scale, while the box colour transition is kept.

Inheritance

Constructors

BeuiCheckbox({required bool value, required ValueChanged<bool> onChanged, bool indeterminate = false, bool enabled = true, String? label, BeuiCheckboxStyle? style, Key? key})
Creates a checkbox. value and onChanged are required (controlled-only).
const

Properties

enabled bool
Whether the checkbox responds to input. Disabled is dimmed and unfocusable.
final
hashCode int
The hash code for this object.
no setterinherited
indeterminate bool
Whether to show the indeterminate (mixed) bar instead of a check. Mirrors the source's separate indeterminate prop; takes visual precedence over value.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String?
Optional label rendered after the box; tapping it toggles the checkbox.
final
onChanged ValueChanged<bool>
Called with the toggled value when the user activates the checkbox.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style BeuiCheckboxStyle?
Optional visual overrides.
final
value bool
Whether the checkbox is checked.
final

Methods

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