Don't talk much , Code directly , Take it and you can use it
static Color hexStringColor(String colorString, {double alpha = 1}) { if (alpha
< 0) { alpha = 0; } else if (alpha > 1) { alpha = 1; } String colorStr =
colorString; if (!colorStr.startsWith('0xff') && colorStr.length == 6) {
colorStr= '0xff' + colorStr; } if (colorStr.startsWith('0x') && colorStr.length
== 8) { colorStr = colorStr.replaceRange(0, 2, '0xff'); } if (colorStr.
startsWith('#') && colorStr.length == 7) { colorStr = colorStr.replaceRange(0, 1
, '0xff'); } Color color = Color(int.parse(colorStr)); int red = color.red; int
green= color.green; int blue = color.blue; return Color.fromRGBO(red, green,
blue, alpha); }

Technology
©2019-2020 Toolsou All rights reserved,
Solve in servlet The Chinese output in is a question mark C String function and character function in language MySQL management 35 A small coup optimization Java performance —— Concise article Seven sorting algorithms (java code ) use Ansible Batch deployment SSH Password free login to remote host according to excel generate create Build table SQL sentence Spring Source code series ( sixteen )Spring merge BeanDefinition Principle of Virtual machine installation Linux course What are the common exception classes ?