flutter_color_plugin
flutter_color_plugin copied to clipboard
A color parse package for flutter,it works on iOS and Android.
Small update to add support for shorthand CSS like `#ccc`, `#000`, etc. For example `#0f0` (R: 0, G: 255, B: 0) will internally be converted to `#00ff00` first and then...
../../../flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_color_plugin-1.0.0/lib/flutter_color_plugin.dart:35:35: ../../../flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_color_plugin-1.0.0/lib/flutter_color_plugin.dart:35:35: Warning: Operand of null-aware operation '!' has type 'String' which excludes null. int? color = sColorNameMap[(colorString!.toLowerCase())]; ^ int? color = sColorNameMap[(colorString!.toLowerCase())]; ^
没有考虑'#ccc'这种情况
packages get 后 