Showing
3 changed files
with
5 additions
and
1 deletions
@@ -21,6 +21,7 @@ import 'dart:io'; | @@ -21,6 +21,7 @@ import 'dart:io'; | ||
21 | import 'dart:typed_data'; | 21 | import 'dart:typed_data'; |
22 | import 'dart:ui' as ui; | 22 | import 'dart:ui' as ui; |
23 | 23 | ||
24 | +import 'package:flutter/rendering.dart'; | ||
24 | import 'package:flutter/services.dart'; | 25 | import 'package:flutter/services.dart'; |
25 | import 'package:flutter/widgets.dart'; | 26 | import 'package:flutter/widgets.dart'; |
26 | import 'package:pdf/pdf.dart'; | 27 | import 'package:pdf/pdf.dart'; |
@@ -19,5 +19,7 @@ part of printing; | @@ -19,5 +19,7 @@ part of printing; | ||
19 | class PdfDoc extends Document { | 19 | class PdfDoc extends Document { |
20 | /// Wrapper for a [Document] with zlib compression enabled by default | 20 | /// Wrapper for a [Document] with zlib compression enabled by default |
21 | PdfDoc({bool compress = true}) | 21 | PdfDoc({bool compress = true}) |
22 | - : super(deflate: compress ? zlib.encode : null); | 22 | + : super(deflate: compress ? zlib.encode : null) { |
23 | + Document.debug = debugPaintSizeEnabled; | ||
24 | + } | ||
23 | } | 25 | } |
-
Please register or login to post a comment