Skip to main content
Logo Appt Light

Input instructions on Flutter

When a label might not describe the requested input sufficiently, you should add additional instructions. For example, if passwords are required to be at least 8 characters, indicate this to users.

In Flutter, you can use an InputDecoration to show instructions for a TextField. You need to provide a string for the helperText property.

TextField(
  decoration: InputDecoration(
    helperText: 'Your password should be at least 8 characters.',
  ),
);

Feedback?

Let us know!