inputDecoration property
Fully custom decoration for the text input field.
When set, this replaces the default decoration entirely — pass the same InputDecoration you already use elsewhere in your app to make the field feel native. inputBorderColor and inputHintText are ignored when this is provided.
inputDecoration: InputDecoration(
hintText: 'Your answer…',
filled: true,
fillColor: Colors.grey.shade100,
border: OutlineInputBorder(borderRadius: BorderRadius.circular(8)),
)
Implementation
final InputDecoration? inputDecoration;