save correct color to db

use different pointer for highlighter
This commit is contained in:
2022-11-03 15:12:40 +01:00
parent 9be2c69ff5
commit 4d52868854
4 changed files with 51 additions and 23 deletions

View File

@ -47,9 +47,9 @@ void exportPDF(List<Stroke> strokes, String name) async {
const PdfPageFormat a4 = PdfPageFormat(_a4width, _a4height);
pdf.addPage(pw.MultiPage(
pdf.addPage(pw.Page(
pageFormat: a4,
build: (context) => [_StrokePDFPaint(strokes)],
build: (context) => _StrokePDFPaint(strokes),
));
final path = await getSavePath();