JuiChoiceChip constructor

JuiChoiceChip({
  1. Key? key,
  2. required bool isSelected,
  3. required String label,
  4. 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,
      );