[enter image description here](https://i.stack.imgur.c[enter image description here](https://phpout.com/wp-content/uploads/2023/07/W0jyh.png)om/yzTRX.png)
i wanted images to appear randomly when button is presssed
i wanted images to appear randomly when button is presssed
2
Answers
You need to set the key value in proper way
I can correct it for you plz provide me the code as text
At the first image, it’s just warning and this problem can be solved easily by adding
key
to your contructorsFor second image, you can pass a
Function
as value of onPressed