Hello!
Back again with the same issue. I've been at a standstill for over a week and cant't move foreword with this project. Saving and retrieving data from a list within a list is proving to be extremely convoluted. I'm sure it all bubbles down to lack of knowledge on my part though. All of this is going to be done locally on the device using App State variables, I don't plan to set up a backend database like Firebase. So I have a custom data type named "Exercise" with some variables inside it:
Then I have another custom data type named "Workout" with some random variables inside and a list of "Exercise" inside of it:
I then created an App State called "Workouts" of data type DataStruct which is a list of "Workout":
Now I would like to add the workout name into the text field and pick the muscle group from the dropdown menu then on a click of the iconButton save those two values into the App State 'Workouts' List under the variables Exercise(ExerciseName) and Exercise(MuscleGroup).
Please correct me if I'm wrong with my thought process here. I think this is where I'm having issues. In the first box I picked my app state list 'Workouts' as the fields to set. Under 'Select Update Type' I picked 'Add to List'. To me it makes sense to add to my list of 'Workouts'. The value to add I picked 'Workout' under created data type. Because I'm added a new instance of Workout to my Workouts list
I then chose 'Exercises' as the field to update. But now I'm stuck. There is no value that I can pick to add to my 'Exercises' field, like ExerciseName, Sets, Reps, MuscleGroup, etc.
Any help would be greatly appreciated! Even just some guidance. I've been completely stuck on trying to figure out these lists within lists.....arrays?.....data structures? I'm not sure what FlutterFlow calls them.
Cheers!