Input label - Flutter
In Flutter, there is no attribute to link a label to an input field. You can use an InputDecoration
to show a label for a TextField
. You need to provide a Text
widget for the label
property.
TextField(
decoration: InputDecoration(
label: Text('Name')
),
);