Flutter + Snapshot ? #18602
Replies: 4 comments 1 reply
-
Let's say you want to take a screenshot of the FlutterLogo widget . wrap it in a RepaintBoundary with will creates a separate display list for its child . and provide with a key
and then you can get the pngBytes by converting the boundary to an image
|
Beta Was this translation helpful? Give feedback.
-
@Robert442 thanks! But I was more asking about Fastlane Snapshot integration, of course, I can do it all manually using https://pub.dev/packages/screenshot for example :) |
Beta Was this translation helpful? Give feedback.
-
I am stuck at the same problem now. There is currently no good way to automate screenshots for a CI/CD pipeline. Using screenshots from Flutter integration tests does leave out the status bar on the top. So maybe it makes most sense having an option in frameit to add the status bar during the framing process. |
Beta Was this translation helpful? Give feedback.
-
Is there an alternative to this these days? I was looking at fastlane but dont see it integrating with Flutter for screenshots well yet. |
Beta Was this translation helpful? Give feedback.
-
Hey, I am trying to find a way to automate the screenshot taking for app stores.
Fastlane Snapshot looks great but I don't want to write native code.
Is there a way to use Snapshot with Flutter?
PS: with such an automated process, how do you deal with authentication? Do you give a "hack authentication" to "screenshot takers code" I guess?
Thank you a lot in advance for your help :)
Beta Was this translation helpful? Give feedback.
All reactions