templateParagraphs function

List<Widget> templateParagraphs(
  1. TemplateTheme theme,
  2. List<String> paragraphs
)

Body paragraphs.

Implementation

List<Widget> templateParagraphs(TemplateTheme theme, List<String> paragraphs) {
  return <Widget>[
    for (final String paragraph in paragraphs) ...<Widget>[
      Text(
        paragraph,
        style: TextStyle(fontSize: 11, height: 1.4, color: theme.ink),
      ),
      SizedBox(height: 8),
    ],
  ];
}