FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
105 stars 18 forks source link

Changing Network Path of PDF Viewer doesn't load the new PDF #2961

Open bloemy7 opened 1 month ago

bloemy7 commented 1 month ago

Has your issue been reported?

Current Behavior

When using the PdfViewer widget, if you change the Network Path to a new one, it shows a spinning wheel forever, even though the URL that is set is a valid PDF.

Expected Behavior

PdfViewer should reload the new PDF and display it.

Steps to Reproduce

  1. Create a new page
  2. Add a PdfViewer
  3. Have it load the PDF from Network Path, and set the Network Path as some page state
  4. Change the page state that it depends on upon click somewhere in the widget to a new, valid PDF URL
  5. Initial load works - then click on the button to change the state and observe

Reproducible from Blank

Bug Report Code (Required)

ITEelcmB05NItb0E+YfyL8dvqwMwGkQ5a7sviu5+FBQaI+PzPJofdsnSREtpSOqHf1ZHMFH/kj0H063xi+OfVsc6YCScRYhRzpFhUxDhTkGjRciVBqq7dHx7N/JTJ3XDyqbYggolObZvWk0twV2EHeiAb3qCf9qOYwx5e6fDbOY=

Context

I am trying to create a page where the user can upload multiple PDFs, and then can click between them to preview.

Visual documentation

Screenshot 2024-05-22 at 9 29 20 AM

Additional Info

I pushed the code locally and inspected it.

Environment

- FlutterFlow version: v.4.1.53+
- Platform: All
- Browser name and version: All
- Operating system and version affected: All

General

Relative to the time the changes were made, data was lost within

When following my steps to reproduce, data loss happens

ignalauret commented 1 month ago

Hey @bloemy7 thanks for your report. I can confirm that the loading indicator never goes away after changing the PDF viewer. I will send this to our technical team so they can take a look and keep you updated on this thread.
Have a great day!