getSelectedChipDecoration function

Widget getSelectedChipDecoration(
  1. bool isSelected,
  2. String text
)

Implementation

Widget getSelectedChipDecoration(bool isSelected, String text){
  return Container(
    padding: const EdgeInsets.fromLTRB(12, 6, 12, 6),
      decoration: BoxDecoration(
        color: isSelected ? black : white,
        border: Border.all(
          color: black,
          width: 0.5
        ),
        borderRadius: BorderRadius.circular(kDashboardRadius)
      ),
      child: Text(text,style: TextStyle(color:isSelected ? white : black,fontWeight: FontWeight.w400, fontSize: 14))
  );
}