Closed xErik closed 1 year ago
@xErik you opened this issue and closed on the same day. Did you find a better solution or it worked for you?
@rmahmadkhan You need to avoid wrapping the Consumer with the Screenshot. Place it above Screenshot in the Widget tree.
Capturing a widget using a Provider crashes when using
captureFromWidget
.The workaround would be to set parameters in the Widget constructor instead of using a Provider internally.
However, I wonder if there is a way to make it work without refactoring the Provider out off the widget.