ueman / feedback

A simple widget for getting better feedback.
https://pub.dev/packages/feedback
404 stars 99 forks source link

Add option to pass a custom `screenshotController` #333

Open TarekMedhat opened 2 weeks ago

TarekMedhat commented 2 weeks ago

:scroll: Description

Add the option to pass a custom ScreenshotController

:bulb: Motivation and Context

I had a use case that required custom capture logic, which let me add native screenshot support for platform views by capturing the view natively.

:green_heart: How did you test it?

Implemented a custom ScreenshotController and passed it to BetterFeedback widget.

:pencil: Checklist

:crystal_ball: Next steps

🔁 : Alternative Solution:

Another possible solution: is to only make the ScreenshotController key public and static without any further changes. static final GlobalKey containerKey = GlobalKey(); This works since the feedback widget wraps the app, so there will always be one scrollController all the time. Then feedbackBuilder can be used to override the onSubmit logic.