Ben*_*min 3 dart flutter
我希望能够将 aColor转换为List<int>[0,255,255] 之类的。
Color
List<int>
我怎么做?
小智 6
List<int> getRGB(Color c) { return [c.red, c.blue, c.green]; }
使用
Color c = Colors.red; print(getRGB(c));
归档时间:
6 年,2 月 前
查看次数:
1591 次
最近记录: