LabelWidget constructor

const LabelWidget({
  1. Key? key,
  2. required Widget child,
  3. required String label,
  4. double? verticalSpacing,
})

This widget uses TextTheme.displayMedium for the label text style. It has a default font size of 16 and a default color of colorScheme.onSurface. It has a default vertical spacing of 10 between the label and the child widget. The child widget is displayed below the label.

Implementation

const LabelWidget({
  super.key,
  required this.child,
  required this.label,
  this.verticalSpacing,
});