FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
127 stars 26 forks source link

PDF Viewer Widget Not Displaying PDFs When Using Network Path from Variable #3602

Open iliasstdddd opened 3 months ago

iliasstdddd commented 3 months ago

Can we access your project?

Current Behavior

When I define the URL in the Network Path of the PDF Viewer widget using a variable (from either a JSON response or a Data Type), the PDF does not display in the widget during testing or in a deployed app. However, if I manually input the same URL directly into the Network Path, the PDF displays correctly. This issue occurs across multiple PDFs, so it is not specific to a single file.

Expected Behavior

The PDF Viewer widget should display the PDF correctly when the URL is provided via a variable, just as it does when the URL is entered directly into the Network Path.

Steps to Reproduce

Create a new project. Add a PDF Viewer widget to a page. Set the Network Path of the PDF Viewer to a variable containing the URL of a PDF (from an API call or a Data Type). Run the app. Observe that the PDF is not displayed.

Reproducible from Blank

Bug Report Code (Required)

ITEei87lz4hPtbxD+pDIbMIxowMwHUgkU7knktVxRRQaI+PpBJYlPs7BQE5vSOqHdH5qHFSLsF0zpKHUheLxA+0EJTCVQJQ5yqhfUxDjd3GXMrXXDLi8R0clRPNYN3aC0Lu3qghAOvJidVZh6k6UHuyQa3qCf9qOYwx5e6fDbOY=

Visual documentation

Capture

Environment

- FlutterFlow version: 
- Platform:
- Browser name and version:
- Operating system and version affected:

Additional Information

This issue is blocking the proper display of PDFs in my application. I have tried various PDFs and configurations, but the issue persists when using a variable for the Network Path. This bug limits the functionality of my app, making it difficult to proceed with my project.

msusviela commented 3 months ago

Thanks! I could replicate the issue. I'll send it to ENG so they can work on this