i am new to flutter and I building an application now. I have a general question. What is the best practice to use the same widget/page for view mode and edit mode. in View mode there will be an edit button when user clicks on it then fields will be open for edit and two buttons i.e. Save and Cancel will appear.
Should I create different widgets for each state or I should control this with some flags?
Thank you.