I need to bind the color code in a flutter. I have code like this.
color: Color(int.parse(widget.product.colors[i]))
Issue is previously i have full hex code in widget.product.colors[i] like 0xFF223263 but now i have just #223263. How can I bind this mean add before this
Mean something like
color: Color(int.parse(0xff$widget.product.colors[i]))
Mean if I need to add 0xff before the colors so it can show in-app