I need to show the color from in my container. Mean i have color codes in string format and i need to use as the Container Color.
decoration: BoxDecoration(
color: widget.product.colors[i].toColor(),
borderRadius: BorderRadius.all(Radius.circular(40)),
This is the simple code i am doing like this but its showing error
Invalid argument(s): Can not interpret string 0xFFF6625E
If i remove the .toColor() then its showing
Error: The argument type 'String' can't be assigned to the parameter type 'Color'.
Can any one please tell how can i show this ?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…