build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Build the widget

Implementation

@override
Widget build(BuildContext context) {
  Widget widget = view(context);

  if (field.header != null || field.footer != null) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        if (field.header != null) ...[
          field.header!,
          Spacing.vertical(getHeaderSpacing())
        ],
        widget,
        if (field.footer != null) ...[
          field.footer!,
          Spacing.vertical(getFooterSpacing())
        ],
      ],
    );
  }

  return widget;
}