FlutterPDFViewer
FlutterPDFViewer copied to clipboard
NotUrLPath
In given example: PDF not read by URL. it read from assets path RaisedButton( color: Colors.amber, child: Text("Open from URL"), onPressed: () { if (urlPDFPath != null) { Navigator.push( context, MaterialPageRoute( builder: (context) => PdfViewPage(path: assetPDFPath))); } }, ),
use pdfViewPage(path: urlPDFPath) (instead of using assetPDFPath in order to read pdf file from url