Flutter support? #45
-
It would be perfect if it supports flutter (android, ios, web, macos, linux, windows) like lottie does. see lottie, lottie-flutter. Maybe we can implement it via |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
We haven't implemented the platform interfaces for Flutter yet. But it is actually not difficult to render a PAG file in Flutter. Many apps have done it by themself already through the 'External Texture' of Flutter. What you need is to get an OpenGL texture from Flutter, and then make a PAGSurface from this texture, finally, use a PAGPlayer to render a PAGFile into the PAGSurface. You can give it a try. We also may upload a demo to demonstrate that in recent days. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/libpag/pag-flutter.git |
Beta Was this translation helpful? Give feedback.
We haven't implemented the platform interfaces for Flutter yet. But it is actually not difficult to render a PAG file in Flutter. Many apps have done it by themself already through the 'External Texture' of Flutter. What you need is to get an OpenGL texture from Flutter, and then make a PAGSurface from this texture, finally, use a PAGPlayer to render a PAGFile into the PAGSurface. You can give it a try. We also may upload a demo to demonstrate that in recent days.