theme_tailor
Code generator for Flutter's 3.0 ThemeExtension classes. The generator can create themes and extensions on BuildContext or ThemeData based on the lists of the theme properties
3.1.3
46K downloads/mo
#1516 most downloaded on pub.dev
Iteo/theme_tailor
What this package is like to depend on
Last release 5 months ago
05 Mar 2026
Release timing varies
gaps range from 1 weeks to 13 months
Nearly every release is documented
notes for 24 of 24 stable releases
1 version withdrawn
withdrawn after publishing
4 years old
25 releases · first in 2022
3 releases in the last 12 months
see the full history below
Release timeline
25 releases · Jun 2022 to Mar 2026Releases
latest 25-
3.1.305 Mar 2026 -
3.1.208 Dec 2025Release notes
Open source →- Use the same versioning for other theme_tailor packages
- Require
dart sdk 3.9.0 - Require
analyzer: ^9.0.0 - Require
build: ^4.0.3 - Require
build_config: ^1.2.0 - Require
collection: ^1.19.0 - Require
dart_style: ^3.1.3 - Require
meta: ^1.16.0 - Require
source_gen: ^4.1.1 - Require
source_helper: ^1.3.9
-
3.1.125 Sep 2025Release notes
Open source →- Use the same versioning for other theme_tailor packages
- Support analyzer: ">=7.5.9 <9.0.0"
- Support build 3.0.0 and ^4.0.0
- Support source_gen 3.0.0 and ^4.0.0
-
3.1.024 Jul 2025Release notes
Open source →- Support build 3.0.0.
- Support source_gen 3.0.0.
- Require Dart 3.8.0
- Require analyzer >= 7.5.9
-
3.0.316 Jun 2025 -
3.0.212 Mar 2025Release notes
Open source →- RC 3.0.2
Upgrade dependencies source_gen, analyzer
Lint cleanup
Change codegen test code formatting
Change toolbox color lerp to use frameworks lerp, simplify impl, remove unnecessary test
Update copyright
- RC 3.0.2
-
3.0.121 Feb 2024 -
3.0.020 Feb 2024 withdrawnRelease notes
Open source →- Remove deprecated
@Tailor/@TailorComponentannotation and code adjustment for mixins. - Added linteo package to the project.
- Remove deprecated
-
2.1.002 Feb 2024Release notes
Open source →- Add
themeClassNameandthemeDataClassNameproperties to@TailorMixin. This addition provides the flexibility for themeGetters to generate a custom theme getter for the extension. - Add migration example from
@Tailor/@TailorComponentto@TailorMixin/@TailorMixinComponent. - Bump dependencies versions
- Add
-
2.0.210 Nov 2023 -
2.0.110 Nov 2023Release notes
Open source →-
!chore(repo): Upgrade dependencies
-
Fix version on toolbox
-
Update documentation
Release notes
Open source →- Support analyzer version from 5.13.0 to ^6.0.0 (thanks @Maatteogekko)
- Bump sdk version
- Fix image links
- Update documentation
-
-
2.0.019 Apr 2023Release notes
Open source →- Add additional way to generate ThemeExtension classes with
@TailorMixin/@TailorMixinComponentannotation - Add support for required and optional constructor parameters for classes annotated with
@TailorMixinor@TailorComponent - Required version of theme_tailor_annotation is 2.0.0
- Add additional way to generate ThemeExtension classes with
-
1.2.011 Apr 2023Release notes
Open source →- Added
generateStaticGettersproperty toTailorandTailorComponentto support hot-reload - Build configuration. It is possible to configure
themeGetter,requireStaticConstandgenerateStaticGettersannotation properties within the build.yaml with: theme_getter and require_static_const (all keys and values for enums are snake_case) - Required version of theme_tailor_annotation is 1.2.0
- Added
-
1.1.231 Mar 2023Release notes
Open source →- Fix: DiagnosticableTreeMixin not being generated if package:flutter/foundation.dart was proceeded by other Flutter import
-
1.1.121 Mar 2023Release notes
Open source →- Update documentation
- Fix: required version of theme_tailor_annotation is 1.1.1
-
1.1.021 Mar 2023Release notes
Open source →- Generate constant themes if possible
- Nullable fields are no longer required in a generated theme constructor
- Theme fields are now ordered alphabetically in generated code
- Update examples and documentation for good / bad practices
- Increase minimum analyzer version to 5.2
- Fix debug fill properties not generated
- Fix the case when some of the properties were generated as dynamic for Flutter types like Color / TextStyle
- Add package logo to the pub.dev
-
1.0.826 Oct 2022 -
1.0.724 Oct 2022 -
1.0.614 Sep 2022 -
1.0.508 Aug 2022Release notes
Open source →- Fix generator not loading default theme names if they were not specified in the annotation or build.yaml
- Improve documentation
-
1.0.422 Jul 2022Release notes
Open source →- Build configuration. It is possible to configure
themeswithin the build.yaml - Fix name collision when theme class contains
themesfield - Fix the bug where the generator could not handle encoders extending generic type encoders
- Empty theme class will now generate with const constructor
- Add support for typedefs
- Build configuration. It is possible to configure
-
1.0.330 Jun 2022Release notes
Open source →- Improve documentation,
- Fix the broken readme link
- Add branding materials
-
1.0.229 Jun 2022Release notes
Open source →- Improve documentation,
- Add support for json_serializable,
- Add support for nested the extension with
@themeExtensionannotation, - Add support for Flutter's DiagnosticableTreeMixin (debugFillProperties)
- Generated class will overwrite the
hashCodeand==operator. The equality operator will deeply compare collections in the class
-
1.0.114 Jun 2022 -
1.0.013 Jun 2022