Color共2篇

Flutter 十六进制颜色(#E6A919)转Color

Flutter  十六进制颜色(#E6A919)转Color-IT网络技术分享
///TODO:颜色转换 static int hexToColor(String s) { if (s.startsWith('#')) { s = s.substring(1); } if (s.length == 6) { return int.parse(s, radix: 16) + 0xFF000000; } else if (s.le...
趙哥的头像-IT网络技术分享趙哥2年前
2528

Flutter Color 转 MaterialColor

Flutter Color 转 MaterialColor-IT网络技术分享
MaterialColor createMaterialColor(Color color) { List strengths = <double>[.05]; Map<int, Color> swatch = <int, Color>{}; final int r = color.red, g = color.green...
趙哥的头像-IT网络技术分享趙哥2年前
72810