David PHAM-VAN

Change links to pub.dev

@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 4
5 This set of plugin allows Flutter apps to generate and print pdf files to device printer. This plugin works for iOS and Android. 5 This set of plugin allows Flutter apps to generate and print pdf files to device printer. This plugin works for iOS and Android.
6 6
7 -- dart pdf: <https://pub.dartlang.org/packages/pdf>  
8 -- flutter printing: <https://pub.dartlang.org/packages/printing> 7 +* dart pdf: <https://pub.dev/packages/pdf>
  8 +* flutter printing: <https://pub.dev/packages/printing>
9 9
10 [![Buy Me A Coffee](https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png "Buy Me A Coffee")](https://www.buymeacoffee.com/JORBmbw9h "Buy Me A Coffee") 10 [![Buy Me A Coffee](https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png "Buy Me A Coffee")](https://www.buymeacoffee.com/JORBmbw9h "Buy Me A Coffee")
@@ -10,7 +10,7 @@ images and text using TrueType fonts. With the ease of use you already know. @@ -10,7 +10,7 @@ images and text using TrueType fonts. With the ease of use you already know.
10 10
11 <img alt="Example document" src="https://raw.githubusercontent.com/DavBfr/dart_pdf/master/pdf/example.jpg"> 11 <img alt="Example document" src="https://raw.githubusercontent.com/DavBfr/dart_pdf/master/pdf/example.jpg">
12 12
13 -Use the `printing` package <https://pub.dartlang.org/packages/printing> 13 +Use the `printing` package <https://pub.dev/packages/printing>
14 for full flutter print and share operation. 14 for full flutter print and share operation.
15 15
16 The coordinate system is using the internal Pdf unit: 16 The coordinate system is using the internal Pdf unit:
@@ -34,7 +34,7 @@ pdf.addPage(Page( @@ -34,7 +34,7 @@ pdf.addPage(Page(
34 })); // Page 34 })); // Page
35 ``` 35 ```
36 36
37 -To load an image it is possible to use the dart library [image](https://pub.dartlang.org/packages/image): 37 +To load an image it is possible to use the dart library [image](https://pub.dev/packages/image):
38 38
39 ```dart 39 ```dart
40 final img = decodeImage(File('test.webp').readAsBytesSync()); 40 final img = decodeImage(File('test.webp').readAsBytesSync());
@@ -71,7 +71,7 @@ pdf.addPage(Page( @@ -71,7 +71,7 @@ pdf.addPage(Page(
71 To save the pdf file: 71 To save the pdf file:
72 72
73 ```dart 73 ```dart
74 -// On Flutter, use the [path_provider](https://pub.dartlang.org/packages/path_provider) library: 74 +// On Flutter, use the [path_provider](https://pub.dev/packages/path_provider) library:
75 // final output = await getTemporaryDirectory(); 75 // final output = await getTemporaryDirectory();
76 // final file = File("${output.path}/example.pdf"); 76 // final file = File("${output.path}/example.pdf");
77 final file = File("example.pdf"); 77 final file = File("example.pdf");
@@ -7,8 +7,8 @@ See the example on how to use the plugin. @@ -7,8 +7,8 @@ See the example on how to use the plugin.
7 7
8 <img alt="Example document" src="https://raw.githubusercontent.com/DavBfr/dart_pdf/master/printing/example.png" width="300"> 8 <img alt="Example document" src="https://raw.githubusercontent.com/DavBfr/dart_pdf/master/printing/example.png" width="300">
9 9
10 -This plugin uses the `pdf` package <https://pub.dartlang.org/packages/pdf>  
11 -for pdf creation. Please refer to <https://pub.dartlang.org/documentation/pdf/latest/> 10 +This plugin uses the `pdf` package <https://pub.dev/packages/pdf>
  11 +for pdf creation. Please refer to <https://pub.dev/documentation/pdf/latest/>
12 for documentation. 12 for documentation.
13 13
14 [![Buy Me A Coffee](https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png "Buy Me A Coffee")](https://www.buymeacoffee.com/JORBmbw9h "Buy Me A Coffee") 14 [![Buy Me A Coffee](https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png "Buy Me A Coffee")](https://www.buymeacoffee.com/JORBmbw9h "Buy Me A Coffee")
@@ -55,7 +55,7 @@ pdf.addPage(Page( @@ -55,7 +55,7 @@ pdf.addPage(Page(
55 })); // Page 55 })); // Page
56 ``` 56 ```
57 57
58 -To save the pdf file using the [path_provider](https://pub.dartlang.org/packages/path_provider) library: 58 +To save the pdf file using the [path_provider](https://pub.dev/packages/path_provider) library:
59 59
60 ```dart 60 ```dart
61 final output = await getTemporaryDirectory(); 61 final output = await getTemporaryDirectory();