Generate Choice Chips options using Code Expression

Custom Code
Resolved

Hello,

Need to create many Choice Chips options, let's say a 100. Surely I can do so by manually creating a massive list (e.g. as page state). However, I assume a Code Expression can help here by performing a For loop.

Though, not sure what the code should look like as it should return a list.

Hoping to get some great insights here. Many thanks in advance.

What have you tried so far?

for (int i = 1; i <= 100; i++) { return i; }

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