TSwitchGroup<T> class
A Tailwind inspired slider field.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- TFormField<
List< T> > - TSwitchGroup
Constructors
-
TSwitchGroup.new({required List<
TSwitchGroupItem< children, Widget? label, Widget? description, List<T> >T> initialValue = const [], ValueChanged<List< ? onChanged, Object? id, Color? color, double? spacing, TControlAffinity affinity = TControlAffinity.leading, Axis axis = Axis.vertical, Key? key})T> > - Construct a TSwitchGroup
-
TSwitchGroup.card({required List<
TSwitchGroupItem< children, Widget? label, Widget? description, List<T> >T> initialValue = const [], ValueChanged<List< ? onChanged, Object? id, Color? color, double? spacing, TControlAffinity affinity = TControlAffinity.leading, Axis axis = Axis.vertical, double radius = TRadius.rounded_lg, EdgeInsets padding = TOffset.a16, double elevation = TElevation.shadow_xs, Key? key})T> > - Construct a TSwitchGroup
-
TSwitchGroup.panel({required List<
TSwitchGroupItem< children, Widget? label, Widget? description, List<T> >T> initialValue = const [], ValueChanged<List< ? onChanged, Object? id, Color? color, TControlAffinity affinity = TControlAffinity.leading, Axis axis = Axis.vertical, double radius = TRadius.rounded_lg, EdgeInsets padding = TOffset.a16, double elevation = 0, Key? key})T> > - Construct a TSwitchGroup
-
TSwitchGroup.separated({required List<
TSwitchGroupItem< children, Widget? label, Widget? description, List<T> >T> initialValue = const [], ValueChanged<List< ? onChanged, Object? id, Color? color, double? spacing, TControlAffinity affinity = TControlAffinity.leading, Axis axis = Axis.vertical, Key? key})T> > - Construct a TSwitchGroup
Properties
- affinity → TControlAffinity
-
The control affinity of the group.
final
- axis → Axis
-
The orientation of the group.
final
-
child
→ FormField<
List< T> > -
The field to element to manage.
finalinherited
-
children
→ List<
TSwitchGroupItem< T> > -
The children of the switch group.
final
- color → Color?
-
The color of the switch elements.
final
- description → Widget?
-
The description widget
final
- elevation → double
-
The elevation to be applied to each radio group item
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → Object
-
The unique identifier for the form field.
finalinherited
-
initialValue
→ List<
T> -
The value of the switch group.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → Widget?
-
The label widget
final
-
onChanged
→ ValueChanged<
List< ?T> > -
Callback when the value changes.
final
- padding → EdgeInsets
-
The padding to be applied to each radio group item
final
- radius → double
-
The radius value for rounded corners
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spacing → double?
-
The spacing between the group elements.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
inherited
-
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