JuiChoiceChip constructor
JuiChoiceChip({
- Key? key,
- required bool isSelected,
- required String label,
- required ValueChanged<
bool> onSelected,
Implementation
JuiChoiceChip({
Key? key,
required bool isSelected,
required String label,
required ValueChanged<bool> onSelected,
}) : super(
key: key,
elevation: 1,
selected: isSelected,
label: Text(label),
labelStyle: isSelected
? const TextStyle().smallMedium(color: JuiColors.gray.shade50)
: const TextStyle().smallMedium(color: JuiColors.gray.shade800),
backgroundColor: JuiColors.gray.shade50,
selectedColor: JuiColors.primaryColor,
onSelected: onSelected,
);