flutter avator random color code example
Example 1: flutter generate random color
color: Colors.primaries[Random().nextInt(Colors.primaries.length)],
or
use package random_color 1.0.5
Example 2: get random color in flutter
Colors.primaries[Random().nextInt(Colors.primaries.length)],