Git Product home page Git Product logo

Comments (2)

Rongix avatar Rongix commented on June 14, 2024

Hey, theme tailor depends on code generation to lower the required boilerplate, if the data is not re-generated then it won't appear during hot reload. You can try to run build_runner watch to make your workflow a bit smoother (and use hot restart)

flutter pub run build_runner watch

You can generate a theme class without predefined themes so they won't generate and then you can fill it manually with values. In that case, it should behave like a 'normal' theme extension class and work with hot reload. I think that's what you're asking for, let me know if it helps!

@Tailor(themes: [])
class _$ChatBubble {
  static const List<Color> background = [];
  static const List<Color> foreground = [];
  static const List<TextStyle> text = [];
}
final bubble = ChatBubble(
  background: Colors.blue,
  foreground: Colors.white,
  text: TextStyle(fontSize: 14),
);

from theme_tailor.

JasCodes avatar JasCodes commented on June 14, 2024

Cool!

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.