Hey everyone, I'm new to flutterflow so if this is worded incorrectly I apologize. For context, I am trying to create a habit tracking app. To create a habit, users must press the habit creation button, and will then be taken through a series of pages where they will fill out fields. I created a data schema with all the fields I need and then added it to an app state variable. After a user filled out a page and pressed continue, the app state would be updated. Once the user went through all the fields, I added the backend call action create document, and uploaded all the information from the app state variable to the userhabits collection I created earlier. Once all of this was finished, I wanted the user's newly created habit to be displayed on the home screen in the form of a component. To create the component I added a container with text. I first created a query of the userhabits collection for the text widget. I set the text to the habitname field of my newly created userhabits document. I added a list view widget to the home page and created a query for the userhabits collection. Then I added the habit component to the listview widget. When I run this app in test mode, there appears to be a null issue of some kind. Also, when I look at debug panel, even though the userhabits document was created, the fields seem to be empty. I don't understand what I did wrong. If you need me to explain aspects of this is more detail to identify the problem please let me know. Thanks in advance!
Backend Query and Create Collection Issue
Actions & Logic
Before settling on using a data schema for the habit creation process, I just used app state variables, however I had issues with that as well.
Yes
2