Building forms the manual way
Flutter has two primary ways of building forms. The first uses TextField
and similar input field widgets and updates the field values and validation manually. To understand how TextField
works, let’s start by building our contacts form with it.
Open contact_edit_view.dart
and replace the Scaffold.body
property with the following code:
body: ListView( padding: const EdgeInsets.symmetric( horizontal: 16, vertical: 32, ), children: const [ Padding( padding: EdgeInsets.symmetric(horizontal: ...