ChipStyle.styled constructor
Creates a chip style with color and size combined.
Implementation
factory ChipStyle.styled({
required Color color,
ChipSize size = ChipSize.medium,
}) {
return ChipStyle(
backgroundColor: Colors.transparent,
activeBackgroundColor: color.withValues(alpha: 0.1),
borderColor: Colors.grey.withValues(alpha: 0.4),
activeBorderColor: color,
textColor: Colors.grey.shade700,
activeTextColor: color,
iconColor: Colors.grey.shade600,
activeIconColor: color,
padding: size.padding,
borderRadius: BorderRadius.circular(size.borderRadius),
iconSize: size.iconSize,
textStyle: TextStyle(fontSize: size.fontSize),
);
}