I'm trying to create a 'Custom Action' to generate a PDF, but when I try to add the dependencies, nothing happens. It still shows a red line under the imports.
Has anyone experienced this before? In this case, since two new dependencies were added, shouldn't the pubspec.yaml file contain these new references?
If possible, could you suggest an alternative to generate a PDF file or even create a PDF from a layout?