Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

themes property default value not working, error received instead #35

Closed
mrnusa opened this issue Jul 29, 2022 · 2 comments · Fixed by #36
Closed

themes property default value not working, error received instead #35

mrnusa opened this issue Jul 29, 2022 · 2 comments · Fixed by #36

Comments

@mrnusa
Copy link

mrnusa commented Jul 29, 2022

Hi,

if u not set the themes property:
@Tailor(themes: ['light', 'dark'])
just type this:
@Tailor
you will receive the following error message and the tailor file not generated:
type 'Null' is not a subtype of type 'List<dynamic>' in type cast

regards

@jackstefansky
Copy link

I am having the same problem :/

@Rongix
Copy link
Collaborator

Rongix commented Aug 5, 2022

Hey, sorry for the inconvenience, to temporarily use the branch with the fix add the following to your pubspec.yaml

dev_dependencies:
  theme_tailor:
    git:
      url: https://github.com/Iteo/theme_tailor.git
      path: packages/theme_tailor
      ref: fix/#35

Rongix added a commit that referenced this issue Aug 8, 2022
#35 Fix default theme names
@Axot017 Axot017 closed this as completed in 4b13d0b Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants