Question: Have the View update based on the changed state When the data in storage changes, the corresponding user interface ( view that the user sees

Have the View update based on the changed state
When the data in storage changes, the corresponding user interface (view that the user sees) must also
update to reflect that change. For example, you could update the view by clearing the form and
displaying the stored data elsewhere on the page, or by redirecting the user to a different page where
the data is displayed.
The updates to the state and view should be tested with at least two different types of inputs (you will
likely need to use operations to convert the data, e.g. from the form to storage, and/or from storage to
what is displayed to the user).Use a Form
Needs to be some way for the user to provide text input and submit their input.
Must include at least two separate input fields for users. Make sure that each input field is clearly labeled
and configured to indicate the required type of input. Your form should be able to handle at least two
different data types (such as String, int, bool, double).
Implement at least one input field with either an EditableText field (such as TextField) or an actual Flutter
Form using the TextFormField, which wraps TextField in a FormField.
For additional input fields, you may use another TextField or a different type of form input field, such as a
DropdownButtonFormField or a RadioListTile. If you are interested in using a type of input field not
mentioned here, first check with the instructor to confirm -- for this assignment, you must use at least
two input fields that are not standard buttons (like ElevatedButton, TextButton, OutlineButton,
IconButton, or FloatingActionButton).
Store a Persistent State in the SQLite DB, local filesystem, or platform-specific persistent storage on the
phone or web
You must store at least two different data types (e.g. String, int, bool, double)
You must successfully use one of the following plugins:
shared_preferences
path_provider
sqflite
Have the Form update the state
When the form receives user input, it must update data that is stored in a persistent state.
Have the View update based on the changed state

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!