bulletView method

Widget bulletView(
  1. String text, {
  2. String? color,
})

A helper method to create a bullet view with the given text and color.

Implementation

pw.Widget bulletView(String text, {String? color}) {
  return pw.Padding(
      padding: const pw.EdgeInsets.only(bottom: 1 * PdfPageFormat.mm),
      child: pw.Row(
        children: [
          /*pw.SvgImage(
            svg:
                SvgStrings.icDot.replaceAll("#dot_color", color ?? "#030104"),
            fit: pw.BoxFit.contain,
            height: 2.5 * PdfPageFormat.mm,
          ),*/
          pw.SizedBox(width: 2 * PdfPageFormat.mm),
          pw.Text(
            text,
            style: pw.TextStyle(
              color: const PdfColor.fromInt(0xff0059A5),
              fontWeight: pw.FontWeight.normal,
              fontSize: 8,
              height: 6 * PdfPageFormat.mm,
              letterSpacing: 1.1,
            ),
          ),
        ],
      ));
}