David PHAM-VAN

Use relative imports

Showing 60 changed files with 66 additions and 75 deletions
@@ -30,6 +30,7 @@ linter: @@ -30,6 +30,7 @@ linter:
30 - prefer_final_locals 30 - prefer_final_locals
31 - prefer_foreach 31 - prefer_foreach
32 - prefer_if_elements_to_conditional_expressions 32 - prefer_if_elements_to_conditional_expressions
  33 + - prefer_relative_imports
33 - prefer_single_quotes 34 - prefer_single_quotes
34 - public_member_api_docs 35 - public_member_api_docs
35 - sort_constructors_first 36 - sort_constructors_first
@@ -22,7 +22,8 @@ import 'package:flutter/services.dart'; @@ -22,7 +22,8 @@ import 'package:flutter/services.dart';
22 import 'package:pdf/pdf.dart'; 22 import 'package:pdf/pdf.dart';
23 import 'package:pdf/widgets.dart' as pw; 23 import 'package:pdf/widgets.dart' as pw;
24 import 'package:printing/printing.dart'; 24 import 'package:printing/printing.dart';
25 -import 'package:printing_demo/data.dart'; 25 +
  26 +import '../data.dart';
26 27
27 const PdfColor green = PdfColor.fromInt(0xff9ce5d0); 28 const PdfColor green = PdfColor.fromInt(0xff9ce5d0);
28 const PdfColor lightGreen = PdfColor.fromInt(0xffcdf1e7); 29 const PdfColor lightGreen = PdfColor.fromInt(0xffcdf1e7);
@@ -30,6 +30,7 @@ linter: @@ -30,6 +30,7 @@ linter:
30 - prefer_final_locals 30 - prefer_final_locals
31 - prefer_foreach 31 - prefer_foreach
32 - prefer_if_elements_to_conditional_expressions 32 - prefer_if_elements_to_conditional_expressions
  33 + - prefer_relative_imports
33 - prefer_single_quotes 34 - prefer_single_quotes
34 - public_member_api_docs 35 - public_member_api_docs
35 - sort_constructors_first 36 - sort_constructors_first
@@ -15,9 +15,9 @@ @@ -15,9 +15,9 @@
15 */ 15 */
16 16
17 import 'package:meta/meta.dart'; 17 import 'package:meta/meta.dart';
18 -import 'package:pdf/pdf.dart';  
19 import 'package:xml/xml.dart'; 18 import 'package:xml/xml.dart';
20 19
  20 +import '../../pdf.dart';
21 import 'color.dart'; 21 import 'color.dart';
22 import 'mask_path.dart'; 22 import 'mask_path.dart';
23 import 'painter.dart'; 23 import 'painter.dart';
@@ -15,9 +15,9 @@ @@ -15,9 +15,9 @@
15 */ 15 */
16 16
17 import 'package:meta/meta.dart'; 17 import 'package:meta/meta.dart';
18 -import 'package:pdf/pdf.dart';  
19 import 'package:xml/xml.dart'; 18 import 'package:xml/xml.dart';
20 19
  20 +import '../../pdf.dart';
21 import 'brush.dart'; 21 import 'brush.dart';
22 import 'operation.dart'; 22 import 'operation.dart';
23 import 'painter.dart'; 23 import 'painter.dart';
@@ -14,8 +14,7 @@ @@ -14,8 +14,7 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 -import 'package:pdf/pdf.dart';  
18 - 17 +import '../../pdf.dart';
19 import 'colors.dart'; 18 import 'colors.dart';
20 import 'gradient.dart'; 19 import 'gradient.dart';
21 import 'operation.dart'; 20 import 'operation.dart';
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 -import 'package:pdf/pdf.dart'; 17 +import '../../pdf.dart';
18 18
19 const svgColors = <String, PdfColor>{ 19 const svgColors = <String, PdfColor>{
20 'indigo': PdfColor.fromInt(0xff4b0082), 20 'indigo': PdfColor.fromInt(0xff4b0082),
@@ -14,9 +14,9 @@ @@ -14,9 +14,9 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 -import 'package:pdf/pdf.dart';  
18 import 'package:xml/xml.dart'; 17 import 'package:xml/xml.dart';
19 18
  19 +import '../../pdf.dart';
20 import 'color.dart'; 20 import 'color.dart';
21 import 'operation.dart'; 21 import 'operation.dart';
22 import 'painter.dart'; 22 import 'painter.dart';
@@ -16,9 +16,9 @@ @@ -16,9 +16,9 @@
16 16
17 import 'dart:math'; 17 import 'dart:math';
18 18
19 -import 'package:pdf/pdf.dart';  
20 import 'package:xml/xml.dart'; 19 import 'package:xml/xml.dart';
21 20
  21 +import '../../pdf.dart';
22 import 'brush.dart'; 22 import 'brush.dart';
23 import 'clip_path.dart'; 23 import 'clip_path.dart';
24 import 'operation.dart'; 24 import 'operation.dart';
@@ -17,10 +17,10 @@ @@ -17,10 +17,10 @@
17 import 'dart:convert'; 17 import 'dart:convert';
18 18
19 import 'package:image/image.dart' as im; 19 import 'package:image/image.dart' as im;
20 -import 'package:pdf/pdf.dart';  
21 import 'package:vector_math/vector_math_64.dart'; 20 import 'package:vector_math/vector_math_64.dart';
22 import 'package:xml/xml.dart'; 21 import 'package:xml/xml.dart';
23 22
  23 +import '../../pdf.dart';
24 import 'brush.dart'; 24 import 'brush.dart';
25 import 'clip_path.dart'; 25 import 'clip_path.dart';
26 import 'operation.dart'; 26 import 'operation.dart';
@@ -15,9 +15,9 @@ @@ -15,9 +15,9 @@
15 */ 15 */
16 16
17 import 'package:meta/meta.dart'; 17 import 'package:meta/meta.dart';
18 -import 'package:pdf/pdf.dart';  
19 import 'package:xml/xml.dart'; 18 import 'package:xml/xml.dart';
20 19
  20 +import '../../pdf.dart';
21 import 'brush.dart'; 21 import 'brush.dart';
22 import 'operation.dart'; 22 import 'operation.dart';
23 import 'painter.dart'; 23 import 'painter.dart';
@@ -15,9 +15,9 @@ @@ -15,9 +15,9 @@
15 */ 15 */
16 16
17 import 'package:meta/meta.dart'; 17 import 'package:meta/meta.dart';
18 -import 'package:pdf/pdf.dart';  
19 import 'package:xml/xml.dart'; 18 import 'package:xml/xml.dart';
20 19
  20 +import '../../pdf.dart';
21 import 'brush.dart'; 21 import 'brush.dart';
22 import 'clip_path.dart'; 22 import 'clip_path.dart';
23 import 'group.dart'; 23 import 'group.dart';
@@ -14,8 +14,7 @@ @@ -14,8 +14,7 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 -import 'package:pdf/pdf.dart';  
18 - 17 +import '../../pdf.dart';
19 import '../widgets/font.dart'; 18 import '../widgets/font.dart';
20 import 'brush.dart'; 19 import 'brush.dart';
21 import 'color.dart'; 20 import 'color.dart';
@@ -14,9 +14,9 @@ @@ -14,9 +14,9 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 -import 'package:pdf/pdf.dart';  
18 import 'package:xml/xml.dart'; 17 import 'package:xml/xml.dart';
19 18
  19 +import '../../pdf.dart';
20 import 'brush.dart'; 20 import 'brush.dart';
21 21
22 class SvgParser { 22 class SvgParser {
@@ -16,9 +16,9 @@ @@ -16,9 +16,9 @@
16 16
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 -import 'package:pdf/pdf.dart';  
20 import 'package:xml/xml.dart'; 19 import 'package:xml/xml.dart';
21 20
  21 +import '../../pdf.dart';
22 import 'brush.dart'; 22 import 'brush.dart';
23 import 'clip_path.dart'; 23 import 'clip_path.dart';
24 import 'operation.dart'; 24 import 'operation.dart';
@@ -14,9 +14,9 @@ @@ -14,9 +14,9 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 -import 'package:pdf/pdf.dart';  
18 import 'package:xml/xml.dart'; 17 import 'package:xml/xml.dart';
19 18
  19 +import '../../pdf.dart';
20 import 'brush.dart'; 20 import 'brush.dart';
21 import 'clip_path.dart'; 21 import 'clip_path.dart';
22 import 'group.dart'; 22 import 'group.dart';
@@ -16,10 +16,10 @@ @@ -16,10 +16,10 @@
16 16
17 import 'dart:math'; 17 import 'dart:math';
18 18
19 -import 'package:pdf/pdf.dart';  
20 import 'package:vector_math/vector_math_64.dart'; 19 import 'package:vector_math/vector_math_64.dart';
21 import 'package:xml/xml.dart'; 20 import 'package:xml/xml.dart';
22 21
  22 +import '../../pdf.dart';
23 import '../widgets/widget.dart'; 23 import '../widgets/widget.dart';
24 import 'brush.dart'; 24 import 'brush.dart';
25 import 'clip_path.dart'; 25 import 'clip_path.dart';
@@ -14,10 +14,10 @@ @@ -14,10 +14,10 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 -import 'package:pdf/pdf.dart';  
18 import 'package:vector_math/vector_math_64.dart'; 17 import 'package:vector_math/vector_math_64.dart';
19 import 'package:xml/xml.dart'; 18 import 'package:xml/xml.dart';
20 19
  20 +import '../../pdf.dart';
21 import 'brush.dart'; 21 import 'brush.dart';
22 import 'clip_path.dart'; 22 import 'clip_path.dart';
23 import 'operation.dart'; 23 import 'operation.dart';
@@ -16,9 +16,9 @@ @@ -16,9 +16,9 @@
16 16
17 import 'dart:math'; 17 import 'dart:math';
18 18
19 -import 'package:pdf/pdf.dart';  
20 import 'package:vector_math/vector_math_64.dart'; 19 import 'package:vector_math/vector_math_64.dart';
21 20
  21 +import '../../pdf.dart';
22 import 'geometry.dart'; 22 import 'geometry.dart';
23 import 'shape.dart'; 23 import 'shape.dart';
24 import 'text_style.dart'; 24 import 'text_style.dart';
@@ -18,8 +18,8 @@ import 'dart:convert'; @@ -18,8 +18,8 @@ import 'dart:convert';
18 import 'dart:typed_data'; 18 import 'dart:typed_data';
19 19
20 import 'package:barcode/barcode.dart'; 20 import 'package:barcode/barcode.dart';
21 -import 'package:pdf/pdf.dart';  
22 21
  22 +import '../../pdf.dart';
23 import 'basic.dart'; 23 import 'basic.dart';
24 import 'container.dart'; 24 import 'container.dart';
25 import 'decoration.dart'; 25 import 'decoration.dart';
@@ -16,9 +16,9 @@ @@ -16,9 +16,9 @@
16 16
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 -import 'package:pdf/pdf.dart';  
20 import 'package:vector_math/vector_math_64.dart'; 19 import 'package:vector_math/vector_math_64.dart';
21 20
  21 +import '../../pdf.dart';
22 import 'box_border.dart'; 22 import 'box_border.dart';
23 import 'container.dart'; 23 import 'container.dart';
24 import 'decoration.dart'; 24 import 'decoration.dart';
@@ -14,8 +14,7 @@ @@ -14,8 +14,7 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 -import 'package:pdf/pdf.dart';  
18 - 17 +import '../../pdf.dart';
19 import 'widget.dart'; 18 import 'widget.dart';
20 19
21 /// A radius for either circular or elliptical shapes. 20 /// A radius for either circular or elliptical shapes.
@@ -15,8 +15,8 @@ @@ -15,8 +15,8 @@
15 */ 15 */
16 16
17 import 'package:meta/meta.dart'; 17 import 'package:meta/meta.dart';
18 -import 'package:pdf/pdf.dart';  
19 18
  19 +import '../../pdf.dart';
20 import 'border_radius.dart'; 20 import 'border_radius.dart';
21 import 'decoration.dart'; 21 import 'decoration.dart';
22 import 'widget.dart'; 22 import 'widget.dart';
@@ -14,8 +14,7 @@ @@ -14,8 +14,7 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 -import 'package:pdf/pdf.dart';  
18 - 17 +import '../../../pdf.dart';
19 import '../flex.dart'; 18 import '../flex.dart';
20 import '../geometry.dart'; 19 import '../geometry.dart';
21 import '../widget.dart'; 20 import '../widget.dart';
@@ -15,9 +15,9 @@ @@ -15,9 +15,9 @@
15 */ 15 */
16 16
17 import 'package:meta/meta.dart'; 17 import 'package:meta/meta.dart';
18 -import 'package:pdf/pdf.dart';  
19 import 'package:vector_math/vector_math_64.dart'; 18 import 'package:vector_math/vector_math_64.dart';
20 19
  20 +import '../../../pdf.dart';
21 import '../box_border.dart'; 21 import '../box_border.dart';
22 import '../container.dart'; 22 import '../container.dart';
23 import '../decoration.dart'; 23 import '../decoration.dart';
@@ -16,8 +16,7 @@ @@ -16,8 +16,7 @@
16 16
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 -import 'package:pdf/pdf.dart';  
20 - 19 +import '../../../pdf.dart';
21 import '../basic.dart'; 20 import '../basic.dart';
22 import '../flex.dart'; 21 import '../flex.dart';
23 import '../geometry.dart'; 22 import '../geometry.dart';
@@ -16,8 +16,7 @@ @@ -16,8 +16,7 @@
16 16
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 -import 'package:pdf/pdf.dart';  
20 - 19 +import '../../../pdf.dart';
21 import '../flex.dart'; 20 import '../flex.dart';
22 import '../geometry.dart'; 21 import '../geometry.dart';
23 import '../widget.dart'; 22 import '../widget.dart';
@@ -17,8 +17,8 @@ @@ -17,8 +17,8 @@
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 import 'package:meta/meta.dart'; 19 import 'package:meta/meta.dart';
20 -import 'package:pdf/pdf.dart';  
21 20
  21 +import '../../../pdf.dart';
22 import '../geometry.dart'; 22 import '../geometry.dart';
23 import '../widget.dart'; 23 import '../widget.dart';
24 import 'chart.dart'; 24 import 'chart.dart';
@@ -14,8 +14,7 @@ @@ -14,8 +14,7 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 -import 'package:pdf/pdf.dart';  
18 - 17 +import '../../../pdf.dart';
19 import '../basic.dart'; 18 import '../basic.dart';
20 import '../container.dart'; 19 import '../container.dart';
21 import '../decoration.dart'; 20 import '../decoration.dart';
@@ -14,8 +14,7 @@ @@ -14,8 +14,7 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 -import 'package:pdf/pdf.dart';  
18 - 17 +import '../../../pdf.dart';
19 import '../geometry.dart'; 18 import '../geometry.dart';
20 import '../widget.dart'; 19 import '../widget.dart';
21 import 'chart.dart'; 20 import 'chart.dart';
@@ -3,10 +3,11 @@ @@ -3,10 +3,11 @@
3 import 'dart:math'; 3 import 'dart:math';
4 4
5 import 'package:meta/meta.dart'; 5 import 'package:meta/meta.dart';
6 -import 'package:pdf/pdf.dart';  
7 -import 'package:pdf/widgets.dart';  
8 import 'package:vector_math/vector_math_64.dart'; 6 import 'package:vector_math/vector_math_64.dart';
9 7
  8 +import '../../../pdf.dart';
  9 +import '../../../widgets.dart';
  10 +
10 class PieGrid extends ChartGrid { 11 class PieGrid extends ChartGrid {
11 PieGrid({this.startAngle = 0}); 12 PieGrid({this.startAngle = 0});
12 13
@@ -14,9 +14,9 @@ @@ -14,9 +14,9 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 -import 'package:pdf/pdf.dart';  
18 import 'package:vector_math/vector_math_64.dart'; 17 import 'package:vector_math/vector_math_64.dart';
19 18
  19 +import '../../pdf.dart';
20 import 'widget.dart'; 20 import 'widget.dart';
21 21
22 class ClipRect extends SingleChildWidget { 22 class ClipRect extends SingleChildWidget {
@@ -14,9 +14,9 @@ @@ -14,9 +14,9 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 -import 'package:pdf/pdf.dart';  
18 import 'package:vector_math/vector_math_64.dart'; 17 import 'package:vector_math/vector_math_64.dart';
19 18
  19 +import '../../pdf.dart';
20 import 'basic.dart'; 20 import 'basic.dart';
21 import 'decoration.dart'; 21 import 'decoration.dart';
22 import 'geometry.dart'; 22 import 'geometry.dart';
@@ -16,8 +16,7 @@ @@ -16,8 +16,7 @@
16 16
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 -import 'package:pdf/pdf.dart';  
20 - 19 +import '../../pdf.dart';
21 import 'annotations.dart'; 20 import 'annotations.dart';
22 import 'basic.dart'; 21 import 'basic.dart';
23 import 'box_border.dart'; 22 import 'box_border.dart';
@@ -18,9 +18,9 @@ import 'dart:math' as math; @@ -18,9 +18,9 @@ import 'dart:math' as math;
18 18
19 import 'package:image/image.dart' as im; 19 import 'package:image/image.dart' as im;
20 import 'package:meta/meta.dart'; 20 import 'package:meta/meta.dart';
21 -import 'package:pdf/pdf.dart';  
22 import 'package:vector_math/vector_math_64.dart'; 21 import 'package:vector_math/vector_math_64.dart';
23 22
  23 +import '../../pdf.dart';
24 import 'basic.dart'; 24 import 'basic.dart';
25 import 'border_radius.dart'; 25 import 'border_radius.dart';
26 import 'box_border.dart'; 26 import 'box_border.dart';
@@ -16,9 +16,9 @@ @@ -16,9 +16,9 @@
16 16
17 import 'dart:typed_data'; 17 import 'dart:typed_data';
18 18
19 -import 'package:pdf/pdf.dart';  
20 import 'package:xml/xml.dart'; 19 import 'package:xml/xml.dart';
21 20
  21 +import '../../pdf.dart';
22 import 'page.dart'; 22 import 'page.dart';
23 import 'theme.dart'; 23 import 'theme.dart';
24 24
@@ -16,9 +16,9 @@ @@ -16,9 +16,9 @@
16 16
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 -import 'package:pdf/pdf.dart';  
20 import 'package:vector_math/vector_math_64.dart'; 19 import 'package:vector_math/vector_math_64.dart';
21 20
  21 +import '../../pdf.dart';
22 import 'basic.dart'; 22 import 'basic.dart';
23 import 'geometry.dart'; 23 import 'geometry.dart';
24 import 'multi_page.dart'; 24 import 'multi_page.dart';
@@ -17,8 +17,8 @@ @@ -17,8 +17,8 @@
17 import 'dart:typed_data'; 17 import 'dart:typed_data';
18 18
19 import 'package:meta/meta.dart'; 19 import 'package:meta/meta.dart';
20 -import 'package:pdf/pdf.dart';  
21 20
  21 +import '../../pdf.dart';
22 import 'widget.dart'; 22 import 'widget.dart';
23 23
24 enum Type1Fonts { 24 enum Type1Fonts {
@@ -16,10 +16,10 @@ @@ -16,10 +16,10 @@
16 16
17 import 'dart:typed_data'; 17 import 'dart:typed_data';
18 18
19 -import 'package:pdf/pdf.dart';  
20 -import 'package:pdf/src/pdf/data_types.dart';  
21 import 'package:vector_math/vector_math_64.dart'; 19 import 'package:vector_math/vector_math_64.dart';
22 20
  21 +import '../../pdf.dart';
  22 +import '../priv.dart';
23 import 'basic.dart'; 23 import 'basic.dart';
24 import 'border_radius.dart'; 24 import 'border_radius.dart';
25 import 'box_border.dart'; 25 import 'box_border.dart';
@@ -17,9 +17,9 @@ @@ -17,9 +17,9 @@
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 import 'package:meta/meta.dart'; 19 import 'package:meta/meta.dart';
20 -import 'package:pdf/pdf.dart';  
21 import 'package:vector_math/vector_math_64.dart'; 20 import 'package:vector_math/vector_math_64.dart';
22 21
  22 +import '../../pdf.dart';
23 import 'basic.dart'; 23 import 'basic.dart';
24 24
25 @immutable 25 @immutable
@@ -14,11 +14,9 @@ @@ -14,11 +14,9 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 -import 'package:pdf/pdf.dart';  
18 - 17 +import '../../pdf.dart';
19 import 'box_border.dart'; 18 import 'box_border.dart';
20 import 'geometry.dart'; 19 import 'geometry.dart';
21 -  
22 import 'widget.dart'; 20 import 'widget.dart';
23 21
24 /// A widget that draws a rectilinear grid of lines. 22 /// A widget that draws a rectilinear grid of lines.
@@ -16,9 +16,9 @@ @@ -16,9 +16,9 @@
16 16
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 -import 'package:pdf/pdf.dart';  
20 import 'package:vector_math/vector_math_64.dart'; 19 import 'package:vector_math/vector_math_64.dart';
21 20
  21 +import '../../pdf.dart';
22 import 'flex.dart'; 22 import 'flex.dart';
23 import 'geometry.dart'; 23 import 'geometry.dart';
24 import 'multi_page.dart'; 24 import 'multi_page.dart';
@@ -15,9 +15,9 @@ @@ -15,9 +15,9 @@
15 */ 15 */
16 16
17 import 'package:meta/meta.dart'; 17 import 'package:meta/meta.dart';
18 -import 'package:pdf/pdf.dart';  
19 import 'package:vector_math/vector_math_64.dart'; 18 import 'package:vector_math/vector_math_64.dart';
20 19
  20 +import '../../pdf.dart';
21 import 'basic.dart'; 21 import 'basic.dart';
22 import 'font.dart'; 22 import 'font.dart';
23 import 'geometry.dart'; 23 import 'geometry.dart';
@@ -14,9 +14,9 @@ @@ -14,9 +14,9 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 -import 'package:pdf/pdf.dart';  
18 import 'package:vector_math/vector_math_64.dart'; 17 import 'package:vector_math/vector_math_64.dart';
19 18
  19 +import '../../pdf.dart';
20 import 'basic.dart'; 20 import 'basic.dart';
21 import 'geometry.dart'; 21 import 'geometry.dart';
22 import 'image_provider.dart'; 22 import 'image_provider.dart';
@@ -17,8 +17,8 @@ @@ -17,8 +17,8 @@
17 import 'dart:typed_data'; 17 import 'dart:typed_data';
18 18
19 import 'package:image/image.dart' as im; 19 import 'package:image/image.dart' as im;
20 -import 'package:pdf/pdf.dart';  
21 20
  21 +import '../../pdf.dart';
22 import 'widget.dart'; 22 import 'widget.dart';
23 23
24 /// Identifies an image without committing to the precise final asset 24 /// Identifies an image without committing to the precise final asset
@@ -17,9 +17,9 @@ @@ -17,9 +17,9 @@
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 import 'package:meta/meta.dart'; 19 import 'package:meta/meta.dart';
20 -import 'package:pdf/pdf.dart';  
21 import 'package:vector_math/vector_math_64.dart'; 20 import 'package:vector_math/vector_math_64.dart';
22 21
  22 +import '../../pdf.dart';
23 import 'basic.dart'; 23 import 'basic.dart';
24 import 'document.dart'; 24 import 'document.dart';
25 import 'flex.dart'; 25 import 'flex.dart';
@@ -17,9 +17,9 @@ @@ -17,9 +17,9 @@
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 import 'package:meta/meta.dart'; 19 import 'package:meta/meta.dart';
20 -import 'package:pdf/pdf.dart';  
21 import 'package:vector_math/vector_math_64.dart'; 20 import 'package:vector_math/vector_math_64.dart';
22 21
  22 +import '../../pdf.dart';
23 import 'document.dart'; 23 import 'document.dart';
24 import 'geometry.dart'; 24 import 'geometry.dart';
25 import 'page_theme.dart'; 25 import 'page_theme.dart';
@@ -15,8 +15,8 @@ @@ -15,8 +15,8 @@
15 */ 15 */
16 16
17 import 'package:meta/meta.dart'; 17 import 'package:meta/meta.dart';
18 -import 'package:pdf/pdf.dart';  
19 18
  19 +import '../../pdf.dart';
20 import 'geometry.dart'; 20 import 'geometry.dart';
21 import 'page.dart'; 21 import 'page.dart';
22 import 'text.dart'; 22 import 'text.dart';
@@ -16,9 +16,9 @@ @@ -16,9 +16,9 @@
16 16
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 -import 'package:pdf/pdf.dart';  
20 import 'package:vector_math/vector_math_64.dart'; 19 import 'package:vector_math/vector_math_64.dart';
21 20
  21 +import '../../pdf.dart';
22 import 'flex.dart'; 22 import 'flex.dart';
23 import 'geometry.dart'; 23 import 'geometry.dart';
24 import 'multi_page.dart'; 24 import 'multi_page.dart';
@@ -16,8 +16,7 @@ @@ -16,8 +16,7 @@
16 16
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 -import 'package:pdf/pdf.dart';  
20 - 19 +import '../../pdf.dart';
21 import 'basic.dart'; 20 import 'basic.dart';
22 import 'geometry.dart'; 21 import 'geometry.dart';
23 import 'image.dart'; 22 import 'image.dart';
@@ -16,8 +16,7 @@ @@ -16,8 +16,7 @@
16 16
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 -import 'package:pdf/pdf.dart';  
20 - 19 +import '../../pdf.dart';
21 import 'geometry.dart'; 20 import 'geometry.dart';
22 import 'widget.dart'; 21 import 'widget.dart';
23 22
@@ -14,8 +14,7 @@ @@ -14,8 +14,7 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17 -import 'package:pdf/pdf.dart';  
18 - 17 +import '../../pdf.dart';
19 import 'geometry.dart'; 18 import 'geometry.dart';
20 import 'widget.dart'; 19 import 'widget.dart';
21 20
@@ -16,9 +16,9 @@ @@ -16,9 +16,9 @@
16 16
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 -import 'package:pdf/pdf.dart';  
20 import 'package:vector_math/vector_math_64.dart'; 19 import 'package:vector_math/vector_math_64.dart';
21 20
  21 +import '../../pdf.dart';
22 import 'geometry.dart'; 22 import 'geometry.dart';
23 import 'text.dart'; 23 import 'text.dart';
24 import 'widget.dart'; 24 import 'widget.dart';
@@ -15,11 +15,11 @@ @@ -15,11 +15,11 @@
15 */ 15 */
16 16
17 import 'package:meta/meta.dart'; 17 import 'package:meta/meta.dart';
18 -import 'package:pdf/pdf.dart';  
19 -import 'package:pdf/widgets.dart';  
20 import 'package:vector_math/vector_math_64.dart'; 18 import 'package:vector_math/vector_math_64.dart';
21 import 'package:xml/xml.dart'; 19 import 'package:xml/xml.dart';
22 20
  21 +import '../../pdf.dart';
  22 +import '../../widgets.dart';
23 import '../svg/painter.dart'; 23 import '../svg/painter.dart';
24 import '../svg/parser.dart'; 24 import '../svg/parser.dart';
25 25
@@ -17,9 +17,9 @@ @@ -17,9 +17,9 @@
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 import 'package:meta/meta.dart'; 19 import 'package:meta/meta.dart';
20 -import 'package:pdf/pdf.dart';  
21 import 'package:vector_math/vector_math_64.dart'; 20 import 'package:vector_math/vector_math_64.dart';
22 21
  22 +import '../../pdf.dart';
23 import 'box_border.dart'; 23 import 'box_border.dart';
24 import 'container.dart'; 24 import 'container.dart';
25 import 'decoration.dart'; 25 import 'decoration.dart';
@@ -17,9 +17,9 @@ @@ -17,9 +17,9 @@
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 import 'package:meta/meta.dart'; 19 import 'package:meta/meta.dart';
20 -import 'package:pdf/pdf.dart';  
21 -import 'package:pdf/src/pdf/font/arabic.dart' as arabic;  
22 20
  21 +import '../../pdf.dart';
  22 +import '../pdf/font/arabic.dart' as arabic;
23 import 'annotations.dart'; 23 import 'annotations.dart';
24 import 'basic.dart'; 24 import 'basic.dart';
25 import 'document.dart'; 25 import 'document.dart';
@@ -15,8 +15,8 @@ @@ -15,8 +15,8 @@
15 */ 15 */
16 16
17 import 'package:meta/meta.dart'; 17 import 'package:meta/meta.dart';
18 -import 'package:pdf/pdf.dart';  
19 18
  19 +import '../../pdf.dart';
20 import 'decoration.dart'; 20 import 'decoration.dart';
21 import 'font.dart'; 21 import 'font.dart';
22 import 'text.dart'; 22 import 'text.dart';
@@ -18,9 +18,9 @@ import 'dart:collection'; @@ -18,9 +18,9 @@ import 'dart:collection';
18 import 'dart:math' as math; 18 import 'dart:math' as math;
19 19
20 import 'package:meta/meta.dart'; 20 import 'package:meta/meta.dart';
21 -import 'package:pdf/pdf.dart';  
22 import 'package:vector_math/vector_math_64.dart'; 21 import 'package:vector_math/vector_math_64.dart';
23 22
  23 +import '../../pdf.dart';
24 import 'document.dart'; 24 import 'document.dart';
25 import 'geometry.dart'; 25 import 'geometry.dart';
26 import 'multi_page.dart'; 26 import 'multi_page.dart';
@@ -16,9 +16,9 @@ @@ -16,9 +16,9 @@
16 16
17 import 'dart:math' as math; 17 import 'dart:math' as math;
18 18
19 -import 'package:pdf/pdf.dart';  
20 import 'package:vector_math/vector_math_64.dart'; 19 import 'package:vector_math/vector_math_64.dart';
21 20
  21 +import '../../pdf.dart';
22 import 'flex.dart'; 22 import 'flex.dart';
23 import 'geometry.dart'; 23 import 'geometry.dart';
24 import 'multi_page.dart'; 24 import 'multi_page.dart';
@@ -30,6 +30,7 @@ linter: @@ -30,6 +30,7 @@ linter:
30 - prefer_final_locals 30 - prefer_final_locals
31 - prefer_foreach 31 - prefer_foreach
32 - prefer_if_elements_to_conditional_expressions 32 - prefer_if_elements_to_conditional_expressions
  33 + - prefer_relative_imports
33 - prefer_single_quotes 34 - prefer_single_quotes
34 - public_member_api_docs 35 - public_member_api_docs
35 - sort_constructors_first 36 - sort_constructors_first