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-05-14 07:38:00 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f9da14d2908a136da9ac3aa4cb788089ffd7626b
f9da14d2
1 parent
b74c55fd
Add Flutter 3 warning workaround
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
pdf/lib/src/pdf/xref.dart
printing/CHANGELOG.md
printing/lib/src/preview/controller.dart
pdf/lib/src/pdf/xref.dart
View file @
f9da14d
...
...
@@ -187,7 +187,6 @@ class PdfXrefTable extends PdfDataType {
}
final
bytes
=
((
math
.
log
(
offset
)
/
math
.
ln2
).
ceil
()
/
8
).
ceil
();
print
(
bytes
);
final
w
=
[
1
,
bytes
,
1
];
params
[
'/W'
]
=
PdfArray
.
fromNum
(
w
);
final
wl
=
w
.
reduce
((
a
,
b
)
=>
a
+
b
);
...
...
printing/CHANGELOG.md
View file @
f9da14d
...
...
@@ -3,6 +3,7 @@
# 5.9.1
-
iOS: Set cutLength to be currentSize.height
[
Liam Downey
]
-
Add Flutter 3 warning workaround
## 5.9.0
...
...
printing/lib/src/preview/controller.dart
View file @
f9da14d
...
...
@@ -67,7 +67,9 @@ class PdfPreviewData extends ChangeNotifier {
PdfPageFormat
get
actualPageFormat
=>
_onComputeActualPageFormat
();
String
get
localPageFormat
{
final
locale
=
WidgetsBinding
.
instance
!.
window
.
locale
;
// Flutter 3 workaround
final
WidgetsBinding
?
wbi
=
WidgetsBinding
.
instance
;
final
locale
=
wbi
!.
window
.
locale
;
// ignore: unnecessary_cast
final
cc
=
(
locale
as
Locale
?)?.
countryCode
??
'US'
;
...
...
Please
register
or
login
to post a comment