Flutter génère une couleur aléatoire
color: Colors.primaries[Random().nextInt(Colors.primaries.length)],
or
use package random_color 1.0.5
Bole
color: Colors.primaries[Random().nextInt(Colors.primaries.length)],
or
use package random_color 1.0.5
Colors.primaries[Random().nextInt(Colors.primaries.length)],
Random random = Random();
Color tempcol = Color.fromRGBO(
random.nextInt(255),
random.nextInt(255),
random.nextInt(255),
1,
);
//tempcol is random color