I was working with a QR over a card that spins (Transform w/rotation) and could perceive that the performance was slow.
I ended up implementing a Widget that does kinda the same as the one included here but instead of using the CustomPainter, it uses a FutureBuilder that shows an indicator that fades when the image it's ready.
The AnimatedCrossfade could be switched by anything else, but it can become useful to come bundled with the package, having different ways to render the Qr.
Feel free to dismiss this proposal if it doesn't suit the project and would be something rather mantained by the users instead of the package dev.
I was working with a QR over a card that spins (Transform w/rotation) and could perceive that the performance was slow.
I ended up implementing a Widget that does kinda the same as the one included here but instead of using the
CustomPainter
, it uses aFutureBuilder
that shows an indicator that fades when the image it's ready.It could be something like:
The
AnimatedCrossfade
could be switched by anything else, but it can become useful to come bundled with the package, having different ways to render the Qr.Feel free to dismiss this proposal if it doesn't suit the project and would be something rather mantained by the users instead of the package dev.