This repository contain an flutter assignment.
A.Create a stateful widget which has a container and a background color.
B. Store the background color in a state variable in this container.
C. Generate the background color as a random color in initState of container instead of passing it down as props.
D. From a parent widget have an array of such containers and render them in a row, note that the array should contain widgets and not the colors.
E. Have a button in parent widget, on click of the button the containers should be swapped.
- Open android studio on your system.
- Download or copy the code contained inside main.dart file on my github repository.
- Connect suitable device and Run the code on android studio.