How to use Flutter with build_runner?
I’m developing a build_runner plugin that captures const widgets and converts them to images. The process should be triggered by running flutter packages pub run build_runner build
to create snapshots. However, I’m encountering issues importing Flutter within the build_runner context. When I try to import Flutter, it results in numerous reference errors.
build_runner fails because of non-existing errors in code
After runnning build_runner build
the build fails due to several messages like this from more than one builder (auto_route_generator chosen here):
build_runner fails because of non-existing errors in code
After runnning build_runner build
the build fails due to several messages like this from more than one builder (auto_route_generator chosen here):