Im new to flutter and using a plugin called FloatBoxPanel, for the property panelIcon a IconData is expected, I created a svg icon, now i dont know how to use it. directly usage will display error:
The argument type 'Icon' can't be assigned to the parameter type 'IconData'. (Documentation)
The argument type 'SvgPicture' can't be assigned to the parameter type 'IconData'. (Documentation)
Here is part of this code, plz let me know if it is possible, thank you!!
panelIcon: Icon(SvgPicture.asset( // panelIcon 's Type:IconData
'assets/images/candle.svg',
height: 20.0,
width: 20.0,
allowDrawingOutsideViewBox: true,
),),