chopper icon indicating copy to clipboard operation
chopper copied to clipboard

Possible to automate generation of *.chopper.dart files when running a normal flutter build?

Open MoralCode opened this issue 4 years ago • 1 comments

it took me a while to figure out how to generate the *.chopper.dart files using the pub run build_runner build command from the FAQ document. Is there a way that this step of generating files can be set up so that it runs automatically as part of the usual flutter buildprocess?

I'd like to avoid committing generated files to my repo and I would prefer to avoid creating a separate .sh script just to run these two commands as part of a singlular build process.

MoralCode avatar Aug 13 '21 06:08 MoralCode

This is not possible, see: https://github.com/flutter/flutter/issues/63323

pingbird avatar Aug 25 '21 23:08 pingbird