|
|
|
|
@ -1007,15 +1007,15 @@ class _DashboardScreenForDependetState extends State<DashboardScreenForDependet>
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(8),
|
|
|
|
|
color: isSelected ? darkBg : MyColors.lightGreyEAColor,
|
|
|
|
|
border: Border.all(color: isSelected ? darkBg : MyColors.lightGreyEAColor),
|
|
|
|
|
color: isSelected ? MyColors.lightGreyEAColor : Colors.white,
|
|
|
|
|
border: Border.all(color: isSelected ? MyColors.lightGreyEAColor : borderColor),
|
|
|
|
|
),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
if (icon != null) ...<Widget>[Icon(icon, size: 14, color: isSelected ? Colors.white : MyColors.black), const SizedBox(width: 5)],
|
|
|
|
|
Flexible(child: label.toText13(isBold: true, color: isSelected ? Colors.white : MyColors.black, maxlines: 1)),
|
|
|
|
|
if (isSelected) ...<Widget>[const SizedBox(width: 5), const Icon(Icons.check, size: 14, color: Colors.white)],
|
|
|
|
|
if (icon != null) ...<Widget>[Icon(icon, size: 14, color: isSelected ? MyColors.black : const Color(0xFF64748B)), const SizedBox(width: 5)],
|
|
|
|
|
Flexible(child: label.toText13(isBold: true, color: isSelected ? MyColors.black : darkBg, maxlines: 1)),
|
|
|
|
|
if (isSelected) ...<Widget>[const SizedBox(width: 5), const Icon(Icons.check, size: 14, color: MyColors.black)],
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|