templateSigns function

Widget templateSigns(
  1. TemplateTheme theme,
  2. List<SignSlot> slots
)

Signature slots along the line. Empty names leave a rule.

Implementation

Widget templateSigns(TemplateTheme theme, List<SignSlot> slots) {
  if (slots.isEmpty) {
    return const SizedBox.shrink();
  }
  return Row(
    crossAxisAlignment: CrossAxisAlignment.start,
    children: <Widget>[
      for (int i = 0; i < slots.length; i++) ...<Widget>[
        if (i > 0) SizedBox(width: 16),
        Expanded(child: _sign(theme, slots[i])),
      ],
    ],
  );
}