IDSChipsRadioButton class
A custom radio button widget styled as a chip.
The IDSChipsRadioButton allows users to select between multiple options, visually represented as chips. The selected chip has a distinct background color and text color, making it easy to identify the active choice.
Example usage:
IDSChipsRadioButton(
text: 'Option 1',
isSelected: true,
onTap: () => print('Option 1 selected'),
);
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- IDSChipsRadioButton
Constructors
- IDSChipsRadioButton.new({Key? key, required String text, required bool isSelected, required VoidCallback onTap, Color? chipsBorderColor = Colors.grey, Color? chipsSelectedBgColor = Colors.blue, Color? chipsNormalBgColor = Colors.white, Color? selectedTextColor = Colors.white, Color? textColor = Colors.black54, BorderRadius? borderRadius})
-
Creates a IDSChipsRadioButton with the provided properties.
const
Properties
- borderRadius → BorderRadius?
-
The border radius of the chip.
final
- chipsBorderColor → Color?
-
The border color of the chip when it is not selected.
final
- chipsNormalBgColor → Color?
-
The background color of the chip when it is not selected.
final
- chipsSelectedBgColor → Color?
-
The background color of the chip when it is selected.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSelected → bool
-
A boolean value that determines if the chip is selected.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onTap → VoidCallback
-
The callback function that is called when the chip is tapped.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedTextColor → Color?
-
The text color of the chip when it is selected.
final
- text → String
-
The text label displayed inside the chip.
final
- textColor → Color?
-
The text color of the chip when it is not selected.
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