fix negative size when zooming out
This commit is contained in:
parent
4ed438a44b
commit
fa42c26e8f
1 changed files with 5 additions and 3 deletions
|
|
@ -206,9 +206,11 @@ class _FullScreenFileViewerState extends State<FullScreenFileViewer> {
|
|||
startZoomLevel = pdfViewerController.zoomLevel;
|
||||
});
|
||||
} else {
|
||||
setState(() {
|
||||
zoomOut = zoomOut + 100;
|
||||
});
|
||||
if (zoomOut < (width - 100)) {
|
||||
setState(() {
|
||||
zoomOut = zoomOut + 100;
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
icon: Icon(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue