Iteo/theme_tailor

Build runner issue

Closed this issue · 1 comments

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

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