'How to make a container as a check box in Flutter and make sure it doesn't deselect

I have used a package group_button 4.2.1 but once i select the textfields the check boxes buttons deselect and i have to select again, i have tried using the controller property of the Widget but i didn't get it to work.

I was thinking if i can make a container from scratch that is a check box and can retain the value once i finish filling the form to be submitted to my firestore database.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source