joseph-grabinger / flutter_to_pdf

Create PDFs but work with normal Flutter Widgets.
MIT License
21 stars 17 forks source link

The function 'CaptureWrapper' isn't defined. #83

Closed theRightHooprod closed 3 months ago

theRightHooprod commented 3 months ago

My flutter code can't seems to find this widget.

joseph-grabinger commented 3 months ago

I just noticed there is a minor typo in the README.md's example for the CaptureWrapper.

The correct example would be the following:

CaptureWrapper(
  key: const Key('someUniqueCustomPaintKey'),
  child: CustomPaint(
    size: const Size(300, 300),
    painter: SomePainter(),
  ),
)

This should fix the issue, I'd guess :)

joseph-grabinger commented 3 months ago

Closed by #84. Feel free to ask further questions and/or reopen the issue if needed.