packages.flutter
packages.flutter copied to clipboard
Pdf in full screen mode
I want to display my pdf file in full screen mode i tried viewportFraction it works if the screen height / screen width less than 2 Other than this it dosn't work as it shoud also i tried to use render but i lose quality
double screenWidth = MediaQuery.of(context).size.width; double screenHeight = MediaQuery.of(context).size.height; double ratio = screenHeight / screenWidth;
pdfController = PdfController( document: PdfDocument.openAsset(AssetsRes.quraan), initialPage: currentPageNumber, viewportFraction : ratio , );