Baseflow / screenrecorder

Flutter package which can be used to record flutter widgets
https://pub.dev/packages/screen_recorder
MIT License
64 stars 29 forks source link

There is no loading percentage when exporting frames #23

Open MirzaIkhsan opened 1 year ago

MirzaIkhsan commented 1 year ago

I think it would be nice if there is some percentage when exporting frames so I can show the progress to the user. Or maybe there are some alternative that I can use to show the percentage to user?

Thanks 😄

ueman commented 1 year ago

Yeah, this would certainly be nice. I'll gladly accept such a thing as PR.

Even though this seems like a fairly easy change (just increase percentage after each processed frame) this is not trivial since the processing is done on a background isolate. That means there needs to be inter-isolate communication. This also means that the code has to be splitted into an io implementation and a web implementation, since there are no isolates on web.

I'm not entirely sure, but I believe on web this wouldn't help since the processing is currently a blocking operation.