App showcasing each string separtely in list

Widgets & Design

Hello all,

So what im trying to achieve is:

  1. I have list of strings on appstate (names).

  1. Each time i click on button it changes to the next name in that list. (I have one text showing in UI)

  2. End goal is to have the list of names work like a carousel each time i press the button

What have you tried so far?

I have tried this with index and i got it to work. Only problem is that when names run out it says error. I have tried to fix this by having if condition. If index = Number of items in the list: go back to zero. But it doesnt work.

Did you check FlutterFlow's Documentation for this topic?
Yes
1
2 replies