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-09-22 09:02:08 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
78e26056db354983c970c9192d74e298cf6d1ac2
78e26056
1 parent
78b574cf
Remove dependency to dart:io
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
3 additions
and
11 deletions
pdf/lib/src/io.dart → pdf/lib/io/interface.dart
pdf/lib/src/io_archive.dart → pdf/lib/io/js.dart
pdf/lib/src/io_vm.dart → pdf/lib/io/vm.dart
pdf/lib/pdf.dart
pdf/pubspec.yaml
printing/lib/printing.dart
printing/lib/src/printing.dart
pdf/lib/
src/io
.dart → pdf/lib/
io/interface
.dart
View file @
78e2605
pdf/lib/
src/io_archive
.dart → pdf/lib/
io/js
.dart
View file @
78e2605
pdf/lib/
src/io_
vm.dart → pdf/lib/
io/
vm.dart
View file @
78e2605
pdf/lib/pdf.dart
View file @
78e2605
...
...
@@ -26,9 +26,9 @@ import 'package:meta/meta.dart';
import
'package:utf/utf.dart'
;
import
'package:vector_math/vector_math_64.dart'
;
import
'src/io.dart'
if
(
dart
.
library
.
io
)
'src/io_vm.dart'
if
(
dart
.
library
.
js
)
'src/io_archive.dart'
;
import
'io/interface.dart'
if
(
dart
.
library
.
io
)
'io/vm.dart'
if
(
dart
.
library
.
js
)
'io/js.dart'
;
part
'src/annotation.dart'
;
part
'src/array.dart'
;
...
...
pdf/pubspec.yaml
View file @
78e2605
...
...
@@ -16,6 +16,5 @@ dependencies:
crypto
:
"
^2.0.6"
archive
:
"
^2.0.10"
dev_dependencies
:
test
:
any
...
...
printing/lib/printing.dart
View file @
78e2605
...
...
@@ -17,7 +17,6 @@
library
printing
;
import
'dart:async'
;
import
'dart:io'
;
import
'dart:typed_data'
;
import
'dart:ui'
as
ui
;
...
...
printing/lib/src/printing.dart
View file @
78e2605
...
...
@@ -107,9 +107,6 @@ mixin Printing {
/// Opens the native printer picker interface, and returns the URL of the selected printer.
static
Future
<
Printer
>
pickPrinter
({
Rect
bounds
})
async
{
if
(!
Platform
.
isIOS
)
{
return
null
;
}
_channel
.
setMethodCallHandler
(
_handleMethod
);
bounds
??=
Rect
.
fromCircle
(
center:
Offset
.
zero
,
radius:
10
);
final
Map
<
String
,
dynamic
>
params
=
<
String
,
dynamic
>{
...
...
@@ -142,9 +139,6 @@ mixin Printing {
@required
LayoutCallback
onLayout
,
String
name
=
'Document'
,
})
async
{
if
(!
Platform
.
isIOS
||
printer
==
null
)
{
return
false
;
}
_onCompleted
=
Completer
<
bool
>();
_channel
.
setMethodCallHandler
(
_handleMethod
);
final
List
<
int
>
bytes
=
await
onLayout
(
PdfPageFormat
.
standard
);
...
...
Please
register
or
login
to post a comment