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,10 +206,12 @@ class _FullScreenFileViewerState extends State<FullScreenFileViewer> {
|
||||||
startZoomLevel = pdfViewerController.zoomLevel;
|
startZoomLevel = pdfViewerController.zoomLevel;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
if (zoomOut < (width - 100)) {
|
||||||
setState(() {
|
setState(() {
|
||||||
zoomOut = zoomOut + 100;
|
zoomOut = zoomOut + 100;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
Icons.zoom_out,
|
Icons.zoom_out,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue