theme_tailor_annotation
4.0.2, released 3 weeks ago by iteo.com
Annotations for Theme Tailor code generator, no runtime logic.
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.
- freezed_annotation
Annotations for the freezed code-generator.
78Compare - cached_annotation
Provides annotations for the Cached code‑generator to define caching behavior.
56Compare - freezed
Code generation for immutable classes, tagged unions, and cloning without boilerplate.
96Compare - auto_mappr_annotation
Annotations for the auto_mappr code-generator to map between objects.
79Compare
Works with
Packages commonly used together with theme_tailor_annotation: ones it builds on, ones built on it, and its own family.
- json_annotationtheme_tailor_annotation depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- theme_tailorBuilt on theme_tailor_annotationGenerates boilerplate for Flutter ThemeExtension classes using annotations.
- optimusBuilt on theme_tailor_annotationA design system providing reusable UI components for Flutter mobile and web.
- fossuiBuilt on theme_tailor_annotationA minimal Flutter UI kit with 39 components inspired by Cal.com and coss.com/ui.
- widget_toolkitBuilt on theme_tailor_annotationThe Widget Toolkit package consists of several lightweight and customisable UI components that boost productivity and reduce the development time.