Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2019-11-19 18:16:25 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1f03e205af0b87a2ed164e52fb1142d6c9f9d993
1f03e205
1 parent
b744ada3
Change the channel name
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
4 deletions
printing/CHANGELOG.md
printing/android/src/main/java/net/nfet/flutter/printing/PrintingPlugin.java
printing/ios/Classes/SwiftPrintingPlugin.swift
printing/lib/src/printing.dart
printing/pubspec.yaml
printing/CHANGELOG.md
View file @
1f03e20
...
...
@@ -4,6 +4,7 @@
-
Add Markdown example
-
Update printing example
-
Change the channel name
## 2.1.8
...
...
printing/android/src/main/java/net/nfet/flutter/printing/PrintingPlugin.java
View file @
1f03e20
...
...
@@ -73,7 +73,7 @@ public class PrintingPlugin extends PrintDocumentAdapter implements MethodCallHa
* Plugin registration.
*/
public
static
void
registerWith
(
Registrar
registrar
)
{
final
MethodChannel
channel
=
new
MethodChannel
(
registrar
.
messenger
(),
"printing"
);
final
MethodChannel
channel
=
new
MethodChannel
(
registrar
.
messenger
(),
"
net.nfet.
printing"
);
channel
.
setMethodCallHandler
(
new
PrintingPlugin
(
registrar
.
activity
(),
channel
));
printManager
=
(
PrintManager
)
registrar
.
activity
().
getSystemService
(
Context
.
PRINT_SERVICE
);
}
...
...
printing/ios/Classes/SwiftPrintingPlugin.swift
View file @
1f03e20
...
...
@@ -30,7 +30,7 @@ public class SwiftPrintingPlugin: NSObject, FlutterPlugin, UIPrintInteractionCon
}
public
static
func
register
(
with
registrar
:
FlutterPluginRegistrar
)
{
let
channel
=
FlutterMethodChannel
(
name
:
"printing"
,
binaryMessenger
:
registrar
.
messenger
())
let
channel
=
FlutterMethodChannel
(
name
:
"
net.nfet.
printing"
,
binaryMessenger
:
registrar
.
messenger
())
let
instance
=
SwiftPrintingPlugin
(
channel
)
registrar
.
addMethodCallDelegate
(
instance
,
channel
:
channel
)
}
...
...
printing/lib/src/printing.dart
View file @
1f03e20
...
...
@@ -37,7 +37,7 @@ class Printer {
}
mixin
Printing
{
static
const
MethodChannel
_channel
=
MethodChannel
(
'printing'
);
static
const
MethodChannel
_channel
=
MethodChannel
(
'
net.nfet.
printing'
);
static
LayoutCallback
_onLayout
;
static
Completer
<
List
<
int
>>
_onHtmlRendered
;
static
Completer
<
bool
>
_onCompleted
;
...
...
printing/pubspec.yaml
View file @
1f03e20
...
...
@@ -4,7 +4,7 @@ description: Plugin that allows Flutter apps to generate and print documents to
homepage
:
https://github.com/DavBfr/dart_pdf/tree/master/printing
repository
:
https://github.com/DavBfr/dart_pdf
issue_tracker
:
https://github.com/DavBfr/dart_pdf/issues
version
:
2.1.
8
version
:
2.1.
9
environment
:
sdk
:
"
>=2.3.0
<3.0.0"
...
...
Please
register
or
login
to post a comment