build method
Builds the FormHeader as a Column with minimal size and start alignment.
Renders the label using Text with small styling, adds a Gap of 8 units for spacing, and includes the child widget. This method handles the layout logic to ensure proper vertical stacking without excess space, suitable for embedding in larger form structures like Section or Flow.
Implementation
@override
/// Builds the [FormHeader] as a [Column] with minimal size and start alignment.
///
/// Renders the label using [Text] with small styling, adds a [Gap] of 8 units for spacing, and includes the [child] widget.
/// This method handles the layout logic to ensure proper vertical stacking without excess space, suitable for embedding in larger form structures like [Section] or [Flow].
Widget build(BuildContext context) => Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text("Name").small,
Gap(8),
child,
],
);