fix negative size when zooming out

This commit is contained in:
2024-08-27 12:05:28 +02:00
parent 4ed438a44b
commit fa42c26e8f

View File

@@ -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,