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
2022-09-30 10:57:45 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2aca7aa780a5582df4e119f83c2cbb9595470cc8
2aca7aa7
1 parent
a0566ca3
Fix lints
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
printing/lib/src/cache.dart
printing/lib/src/method_channel.dart
printing/lib/src/preview/raster.dart
printing/lib/src/raster.dart
printing/lib/src/cache.dart
View file @
2aca7aa
...
...
@@ -17,7 +17,7 @@
import
'dart:async'
;
import
'dart:typed_data'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
show
FlutterError
;
import
'package:http/http.dart'
as
http
;
/// Store data in a cache
...
...
printing/lib/src/method_channel.dart
View file @
2aca7aa
...
...
@@ -17,9 +17,15 @@
import
'dart:async'
;
import
'dart:typed_data'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
show
ErrorDescription
,
FlutterError
,
FlutterErrorDetails
,
InformationCollector
,
StringProperty
;
import
'package:flutter/rendering.dart'
show
Rect
;
import
'package:flutter/services.dart'
;
import
'package:flutter/services.dart'
show
MethodCall
,
MethodChannel
;
import
'package:pdf/pdf.dart'
;
import
'callback.dart'
;
...
...
printing/lib/src/preview/raster.dart
View file @
2aca7aa
...
...
@@ -19,7 +19,8 @@ import 'dart:io';
import
'dart:math'
;
import
'dart:typed_data'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
show
InformationCollector
,
StringProperty
,
kIsWeb
;
import
'package:flutter/material.dart'
;
import
'package:pdf/pdf.dart'
;
...
...
printing/lib/src/raster.dart
View file @
2aca7aa
...
...
@@ -82,7 +82,7 @@ class PdfRasterImage extends ImageProvider<PdfRaster> {
}
@override
ImageStreamCompleter
load
(
PdfRaster
key
,
Decod
erCallback
decode
)
{
ImageStreamCompleter
load
Buffer
(
PdfRaster
key
,
DecoderBuff
erCallback
decode
)
{
return
OneFrameImageStreamCompleter
(
_loadAsync
());
}
...
...
Please
register
or
login
to post a comment