Showing
5 changed files
with
5 additions
and
4 deletions
@@ -73,7 +73,7 @@ public class PrintingPlugin extends PrintDocumentAdapter implements MethodCallHa | @@ -73,7 +73,7 @@ public class PrintingPlugin extends PrintDocumentAdapter implements MethodCallHa | ||
73 | * Plugin registration. | 73 | * Plugin registration. |
74 | */ | 74 | */ |
75 | public static void registerWith(Registrar registrar) { | 75 | public static void registerWith(Registrar registrar) { |
76 | - final MethodChannel channel = new MethodChannel(registrar.messenger(), "printing"); | 76 | + final MethodChannel channel = new MethodChannel(registrar.messenger(), "net.nfet.printing"); |
77 | channel.setMethodCallHandler(new PrintingPlugin(registrar.activity(), channel)); | 77 | channel.setMethodCallHandler(new PrintingPlugin(registrar.activity(), channel)); |
78 | printManager = (PrintManager) registrar.activity().getSystemService(Context.PRINT_SERVICE); | 78 | printManager = (PrintManager) registrar.activity().getSystemService(Context.PRINT_SERVICE); |
79 | } | 79 | } |
@@ -30,7 +30,7 @@ public class SwiftPrintingPlugin: NSObject, FlutterPlugin, UIPrintInteractionCon | @@ -30,7 +30,7 @@ public class SwiftPrintingPlugin: NSObject, FlutterPlugin, UIPrintInteractionCon | ||
30 | } | 30 | } |
31 | 31 | ||
32 | public static func register(with registrar: FlutterPluginRegistrar) { | 32 | public static func register(with registrar: FlutterPluginRegistrar) { |
33 | - let channel = FlutterMethodChannel(name: "printing", binaryMessenger: registrar.messenger()) | 33 | + let channel = FlutterMethodChannel(name: "net.nfet.printing", binaryMessenger: registrar.messenger()) |
34 | let instance = SwiftPrintingPlugin(channel) | 34 | let instance = SwiftPrintingPlugin(channel) |
35 | registrar.addMethodCallDelegate(instance, channel: channel) | 35 | registrar.addMethodCallDelegate(instance, channel: channel) |
36 | } | 36 | } |
@@ -37,7 +37,7 @@ class Printer { | @@ -37,7 +37,7 @@ class Printer { | ||
37 | } | 37 | } |
38 | 38 | ||
39 | mixin Printing { | 39 | mixin Printing { |
40 | - static const MethodChannel _channel = MethodChannel('printing'); | 40 | + static const MethodChannel _channel = MethodChannel('net.nfet.printing'); |
41 | static LayoutCallback _onLayout; | 41 | static LayoutCallback _onLayout; |
42 | static Completer<List<int>> _onHtmlRendered; | 42 | static Completer<List<int>> _onHtmlRendered; |
43 | static Completer<bool> _onCompleted; | 43 | static Completer<bool> _onCompleted; |
@@ -4,7 +4,7 @@ description: Plugin that allows Flutter apps to generate and print documents to | @@ -4,7 +4,7 @@ description: Plugin that allows Flutter apps to generate and print documents to | ||
4 | homepage: https://github.com/DavBfr/dart_pdf/tree/master/printing | 4 | homepage: https://github.com/DavBfr/dart_pdf/tree/master/printing |
5 | repository: https://github.com/DavBfr/dart_pdf | 5 | repository: https://github.com/DavBfr/dart_pdf |
6 | issue_tracker: https://github.com/DavBfr/dart_pdf/issues | 6 | issue_tracker: https://github.com/DavBfr/dart_pdf/issues |
7 | -version: 2.1.8 | 7 | +version: 2.1.9 |
8 | 8 | ||
9 | environment: | 9 | environment: |
10 | sdk: ">=2.3.0 <3.0.0" | 10 | sdk: ">=2.3.0 <3.0.0" |
-
Please register or login to post a comment