build method
- dynamic context
override
Implementation
@override
pw.Widget build(dynamic context) {
return pw.Container(
padding: const pw.EdgeInsets.symmetric(horizontal: 8 * PdfPageFormat.mm),
decoration: const pw.BoxDecoration(
border:
pw.Border(top: pw.BorderSide(width: 1.0, color: PdfColors.grey)),
),
height: 2 * PdfPageFormat.cm,
child: pw.Row(
crossAxisAlignment: pw.CrossAxisAlignment.center,
children: [
pw.Container(
width: 24 * PdfPageFormat.cm,
padding:
const pw.EdgeInsets.symmetric(vertical: PdfPageFormat.mm * 4),
alignment: pw.Alignment.centerLeft,
child: pw.Text(
"Disclaimer : NST auto interpretation does not provide medical advice it is intended for informational purposes only. It is not a substitute for professional medical advice, diagnosis or treatment.",
style: pw.TextStyle(
color: PdfColors.grey,
fontSize: 10,
fontWeight: pw.FontWeight.normal,
letterSpacing: 1.0),
textAlign: pw.TextAlign.left),
),
pw.Flexible(
child: pw.Container(
child: pw.Center(
child: pw.Text(
"$page of $total",
style: pw.TextStyle(
color: PdfColors.black,
fontSize: 10,
fontWeight: pw.FontWeight.normal),
textAlign: pw.TextAlign.center,
),
),
),
),
],
),
);
}