Git Product home page Git Product logo

Comments (2)

filipwis avatar filipwis commented on June 3, 2024

Hi, I have checked the issue by:

  1. Cloning your example project.
  2. Switching to Flutter version 3.10.6 and Dart version 3.0.6.
  3. Running dart run build_runner watch --delete-conflicting-outputs.

After following these steps, I noticed that every 'InvalidType' in the core_colors.tailor.dart file was changed to 'Color' type. It appears to be working correctly for me. Please kindly double-check the steps once again to ensure it's resolved.

from theme_tailor.

Rongix avatar Rongix commented on June 3, 2024

Hello, thank you for the provided code sample. I've conducted a review and found a few issues:

In app_colors.dart:
The core and component variables should be declared as static final instead of const. These values are not constants.
In component_colors.dart:

There are errors related to buttonBackground and buttonForeground. These variables are of type List, which makes them invalid as @themeExtension annotation targets since Color is not a ThemeExtension.

Additionally, it appears that CoreColors are not used as part of the theme in the provided sample. Unless there's a specific use case for them, they shouldn't be defined as ThemeExtension. (Initially, it seemed like these components had circular dependencies on themselves)

As a general recommendation, you might want to explore the ThemeTailorMixin generator, as it offers more capabilities with simpler syntax and reduces the chances of making these types of mistakes.

I'm going to close this for now, but please feel free to reach out if you have any further questions or require additional assistance.

from theme_tailor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.