packages.flutter icon indicating copy to clipboard operation
packages.flutter copied to clipboard

PDFx Docs should explain that controller must be rebuilt when rebuilding UI

Open gisborne opened this issue 2 years ago • 3 comments

Describe the bug I spent far too long to work out why my pdf would draw but not redraw. Looks like it was because my controller was final. The docs should say not to do this (and ideally explain why; which I still don't know)

To Reproduce Steps to reproduce the behavior:

  1. Set up final controller for pdfx widget. Cause it to draw and then redraw. Wonder why it doesn't redraw. Try to find out why.

Expected behavior Documentation should explain how to do it properly. Ideally, the controller would tell me what I'm doing wrong with a warning.

gisborne avatar Feb 24 '22 23:02 gisborne

I got same problem, i need to redraw the pdf controller but doesnt work

nandakista avatar Feb 26 '22 14:02 nandakista

Hi all, got anyone solve this bugs? i can try redraw a pdf document but dont work

NachoPorrasLGFM avatar Aug 04 '22 15:08 NachoPorrasLGFM

I got the same problem when moving from dark theme to light theme while viewing pdf document Here's how I reproduced the bug: https://user-images.githubusercontent.com/75757472/204158074-40420d65-9a6f-459f-b887-aab9a055bef6.mp4

mgcarofano avatar Nov 27 '22 20:11 mgcarofano