build method
Builds the FormHeaderField by composing a FormHeader with an embedded TextField.
Delegates the label to FormHeader and configures the TextField with provided options, using Text for the placeholder. This method ensures the input field is properly spaced and labeled, facilitating easy inclusion in broader form UIs like Carpet or ButtonPanel sections.
Implementation
@override
/// Builds the [FormHeaderField] by composing a [FormHeader] with an embedded [TextField].
///
/// Delegates the label to [FormHeader] and configures the [TextField] with provided options, using [Text] for the placeholder.
/// This method ensures the input field is properly spaced and labeled, facilitating easy inclusion in broader form UIs like [Carpet] or [ButtonPanel] sections.
Widget build(BuildContext context) => FormHeader(
label: label,
child: TextField(
controller: controller,
focusNode: focusNode,
placeholder: Text(hint),
onChanged: onChanged,
maxLines: maxLines,
minLines: minLines,
),
);