I have five different images in the assets folder.
final List images = [
‘images/1.jpg’,
‘images/2.jpg’,
‘images/3.jpg’,
‘images/4.jpg’,
‘images/5.jpg’,
];
I want the images to be displayed in a random order every time the user presses the button by using EvaluatedButton
2
Answers
Please find below code snippet for your requirement
P.S :- Please put your correct path for images in
List<String> images
.Hi by using this method you can get a random number on each event