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
2024-01-27 12:21:17 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3b4eb64381463b6040bc567ebbae7ab22c6953bb
3b4eb643
1 parent
5aa2a42c
Update cursor behavior in PdfPreviewCustomState
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
printing/lib/src/preview/custom.dart
printing/lib/src/preview/custom.dart
View file @
3b4eb64
...
...
@@ -244,9 +244,7 @@ class PdfPreviewCustomState extends State<PdfPreviewCustom>
updatePosition
=
scrollController
.
position
.
pixels
;
preview
=
index
;
transformationController
.
value
.
setIdentity
();
if
(
kIsWeb
)
{
_updateCursor
(
SystemMouseCursors
.
grab
);
}
_updateCursor
(
SystemMouseCursors
.
grab
);
});
_zoomChanged
();
},
...
...
@@ -288,9 +286,7 @@ class PdfPreviewCustomState extends State<PdfPreviewCustom>
onDoubleTap:
()
{
setState
(()
{
preview
=
null
;
if
(
kIsWeb
)
{
_updateCursor
(
MouseCursor
.
defer
);
}
_updateCursor
(
MouseCursor
.
defer
);
});
_zoomChanged
();
},
...
...
@@ -312,12 +308,10 @@ class PdfPreviewCustomState extends State<PdfPreviewCustom>
),
),
);
return
kIsWeb
?
MouseRegion
(
cursor:
_mouseCursor
,
child:
zoomPreview
,
)
:
zoomPreview
;
return
MouseRegion
(
cursor:
_mouseCursor
,
child:
zoomPreview
,
);
}
void
_zoomChanged
()
=>
widget
.
onZoomChanged
?.
call
(
preview
!=
null
);
...
...
Please
register
or
login
to post a comment