buildLabel function

Widget buildLabel(
  1. BuildContext context,
  2. OpenUiNode node
)

Implementation

Widget buildLabel(BuildContext context, OpenUiNode node) {
  final theme = node.theme;
  return Text(
    node.props.string('text') ?? '',
    style: _textStyle(
      theme,
      color: theme.ink,
      size: theme.fontSizeOf('Label', 14),
      height: 1.4,
      weight: theme.typography.medium,
    ),
  );
}