Create list from initial value

create list from initial value and store in firebase
hello I am making a chat where the first screen enters with firebase automatically passes values ​​to screen 2 screen 2 create a contact list where it is stored in a firebase when you click on a contact open another screen and chat with them. these are my blocks

blocks (39)

blocks (44)

I need help it doesn’t work

When programming one of the fundamental things is to have common sense. If you are passing a list of 3 elements, you cannot assign it to a component, you must indicate the index of the list.


I am new to making this application, could you help me. Can you explain to me what I should do. thank you