How I improve dynamic components and retrieve data values in each component

Hello, i is creating an app to connect to mqtt on this screen I display the connection section when with users who can add to the profile of each I experienced some obstacles when I tried to add a connection profile that intentionally wrong profile of connections that previously the value also changed, how can I set each connection has a different variable content. Your answer helped me a lot.

tags removed by Mod

thi is block kode