Flutter - Storing Widgets in Firebase?

164

Storing widgets won't be that much standard. See, the type of fields aren't infinite. What's infinite in your context is how many fields one user can have and the sequence of input fields (Just like a Google Form creation process).

One idea is that you store the sequence of input fields the user has selected and in each sequence you store the label, placeholders of those input fields which are common. Then retrieve those data from fire-base and display with the help of enum.

Share:
164
JobsyNZ
Author by

JobsyNZ

Updated on December 19, 2022

Comments

  • JobsyNZ
    JobsyNZ over 1 year

    I am wondering whether it is possible to store Widgets(code) in Firebase?

    Reason: I want the user to create a form that is specific to that user, so they can add / remove fields. Clients of the user can then fill that form out based on what fields the user wants.

    I have read in other Stackflow Questions for other languages that they convert the code .toString() and store it as a String.

    Any feedback would be appreciated!