Color _getColor() {
var random = new Random();
int r = random.nextInt(255);
int g = random.nextInt(255);
int b = random.nextInt(255);
print(r);
print(g);
print(b);
return Color.fromARGB(255, r, g, b);
}
Color _getColor() {
var random = new Random();
int r = random.nextInt(255);
int g = random.nextInt(255);
int b = random.nextInt(255);
print(r);
print(g);
print(b);
return Color.fromARGB(255, r, g, b);
}
本文标题:flutter 获取随机颜色
本文链接:https://www.haomeiwen.com/subject/lcsooltx.html
网友评论