`D/PDF_RENDER( 4749): OpenFileDocument. File: /storage/emulated/0/Doc_Holder/c4611_sample_explain.pdf
D/PDF_RENDER( 4749): OpenAssetDocument. Created file: /data/user/0/com.example.doc_holder/cache/02ca37d1b265469b8c30069dc19871cf.pdf
D/PDF_RENDER( 4749): OpenFileDocument. File: /data/user/0/com.example.doc_holder/cache/02ca37d1b265469b8c30069dc19871cf.pdf
D/PDF_RENDER( 4749): OpenFileDocument. File: /storage/emulated/0/Doc_Holder/c4611_sample_explain.pdf
════════ Exception caught by widgets library ═══════════════════════════════════
The following _CastError was thrown building PdfView(dirty, state: _PdfViewState#b86e0):
Null check operator used on a null value
The relevant error-causing widget was
PdfView
lib/const/pdf.dart:23
When the exception was thrown, this was the stack
#0 _PdfViewState._buildLoaded
package:native_pdf_view/src/native_pdf_view.dart:172
#1 _PdfViewState.build
package:native_pdf_view/src/native_pdf_view.dart:205
#2 StatefulElement.build
package:flutter/…/widgets/framework.dart:4683
#3 ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:4566
#4 StatefulElement.performRebuild
package:flutter/…/widgets/framework.dart:4738
...
`
To Reproduce
Steps to reproduce the behavior:
Call this stateful class from anywhere
pass a optional parameter path (internal storage file with .pdf extension )
exapmle of the path: /storage/emulated/0/Doc_Holder/c4611_sample_explain.pdf
Expected behavior
Load the pdf file as it usually loads a assets file
Smartphone (please complete the following information):
Describe the bug Not able to open pdf from internal storage, But its working fine with the project assets files.
Error causing widget was PdfView line 25
To Reproduce Steps to reproduce the behavior:
Expected behavior Load the pdf file as it usually loads a assets file
Smartphone (please complete the following information):