Skip to content
masterclass Buddy

Flutter & Dart · Command

flutter create

InputDecoration describes the visual parts of a Material text field. Use it with TextField or InputDecorator for borders, labels, hints, icons, helper text, and errors.

Last updated

Syntax

InputDecoration({Key? key, String? labelText, String? hintText, String? helperText, String? errorText, String? prefixText, String? suffixText, Widget? prefixIcon, InputBorder? border})

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • TextField
  • InputDecorator
  • Decoration
  • DecoratedBox

Source: InputDecoration class - material library - Dart API. Checked 2026-11-03.