getWidgetSlected method
Implementation
Widget getWidgetSlected(int slectedIndex,{double composWidth=135}) => Row(
children: List.generate(
composition.length, (index) {
final tempColor=composition[index].color;
composition[index].color=index==slectedIndex? Colors.blueAccent:Colors.grey;
var widget = composition[index]
.getWidget(reverse: composition.length==index+1,composWidth: composWidth);
if(index!=slectedIndex){
widget=Opacity(opacity: 0.20,child: widget);
}
composition[index].color=tempColor;
return InkWell(child: widget,onTap: ()=>onClickComposition!(index));
}));