Iteo / theme_tailor

Code generator for Flutter's theme extension classes.
https://pub.dev/packages/theme_tailor
MIT License
79 stars 13 forks source link

Build runner issue #85

Closed marcosgcd closed 1 year ago

marcosgcd commented 1 year ago

I don't know how the generating works in flutter but I think theme_tailor is looking at an annotation that it should not.

I get this error.

Bildschirmfoto 2023-09-24 um 01 59 11

If more info is required please let me know.

Rongix commented 1 year ago

Since Widgetbook is unfamiliar to me, it would be immensely helpful if you could provide a code sample to give us better context for your issue.

In the meantime, as a potential workaround, you might want to consider naming your relevant files with a distinctive pattern, something that can be filtered by the build runner (e.g.: "*.tailor.dart"). This could help restrict code generators to the specific files you intend.

targets:
  $default:
    builders:
      theme_tailor:
        generate_for:
          include:
            - lib/**.tailor.dart