How to update progress bar when looping records

Widgets & Design

I'm looping through a SQLite data set and uploading to Azure via API, that's working perfectly. I was using a snack bar that shows "Uploading record X of Y" and that works fine but is a little tiresome to have it appear and disappear as it loops.

I tried adding a progress bar widget and use the page variables to update using a custom expression loopInteractions/numOfRecords. It never updated so I went ahead and created a data type and app state with both values it still works with the snack bar but the progress bar never gets updated.

What am I missing? Any help will be greatly appreciate it.

What have you tried so far?

Explained above.

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