DEV Community

Discussion on: Why use Reactive Forms in Flutter?

Collapse
 
ctechdev profile image
ctechdev

Hi, I would like to use multiple reactive forms. I created a tabbarview with 6 different tabs and each view has a different reactive form. At the top of the appbar I created a button to save the data of all the forms in an Entry object. How can I implement this function without global keys using a provider that collects the data entered in all the tabs? Thanks in advance.

Collapse
 
joanpablo profile image
Joan Pablo

Hi ctechdev,

A simple way to create a wizard is for example to wrap all the widget within a ReactiveForm and each TabBarView can contains a ReactiveForm to collect specific data.