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

[native_pdf_renderer] Transfer the bitmap through a temporary file

Open graknol opened this issue 3 years ago • 4 comments

Is your feature request related to a problem? Please describe. When rendering big PDFs or at big resolutions, the PlatformChannel takes a long time/crashes the app.

The PlatformChannel requires the UI thread, which means we shouldn't be transferring big files as base64-encoded JSON through it.

Describe the solution you'd like At least the iOS and Android targets should create temporary files, then pass the path to this file in the response message.

Don't know how the web target works, so can't speak for that.

graknol avatar Jan 25 '21 12:01 graknol

I'm taking a stab at the Android target.

graknol avatar Jan 25 '21 12:01 graknol

#153

SergeShkurko avatar Oct 22 '21 21:10 SergeShkurko

In you fork files location has broken: https://github.com/rbcprolabs/packages.flutter/pull/153#issuecomment-949965002

SergeShkurko avatar Oct 22 '21 23:10 SergeShkurko

I resolve any problems at: https://github.com/rbcprolabs/packages.flutter/pull/230 based on you changes but w/o commit history (i migrate files by hand)

SergeShkurko avatar Oct 22 '21 23:10 SergeShkurko