Skip to content
pubscout

theme_tailor_annotation

4.0.2, released 3 weeks ago by iteo.com

Annotations for Theme Tailor code generator, no runtime logic.

WASM-ready
$ flutter pub add theme_tailor_annotation
Source repository

What it does

Provides annotation classes used by Theme Tailor to generate theme extension code at compile time. It has no runtime behavior and depends on Theme Tailor.

AI-written summary of version 4.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • When using Theme Tailor to generate theme extensions
  • When you want type‑safe, compile‑time theme getters

Skip it when

  • When you are not using Theme Tailor or need runtime annotations

Strengths

  • Zero runtime overhead
  • Strong type safety
  • Easy integration with build_runner

Weaknesses

  • Requires Theme Tailor dependency
  • No standalone functionality

Setup

Kind
Pure Dart
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
3

Add dependency, run `flutter pub run build_runner build`

Alternatives

Packages that do the same job and could replace theme_tailor_annotation.

Works with

Packages commonly used together with theme_tailor_annotation: ones it builds on, ones built on it, and its own family.