FLUTTER ECOSYSTEM

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

Latest version
4.0.1
30-day downloads
47.4K
Likes
228
Pub points
150

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

ThemeTailor is a code generator for Flutter 3.0 that simplifies the creation of theme extensions and themes using ThemeExtension classes. It generates theme-related code based on defined properties, enabling consistent theming across BuildContext and ThemeData. The tool supports both light and dark mode configurations, streamlining theme management in Flutter apps. It integrates seamlessly with existing projects via pub add and leverages the new ThemeExtension API for improved customization and scalability.

Use cases
  • Generating dynamic themes
  • Automating theme extension creation
  • Supporting light and dark mode switching
  • Simplifying theme property management
  • Enabling context-based theming
  • Streamlining UI consistency across platforms
Key features
  • Code generation for ThemeExtension
  • Supports BuildContext and ThemeData
  • Light and dark mode integration
  • Property-driven theme definition
  • Cross-platform compatibility
  • Easy pub add integration
Suitable for
  • Flutter developers using ThemeExtension
  • Teams managing complex theming
  • Apps requiring dynamic theme support
  • Developers targeting multiple platforms
  • Projects focused on UI consistency
  • Those adopting Flutter 3.0+ best practices
Considerations
  • Requires Flutter 3.0 or higher
  • Needs build_runner for code generation
  • Manual configuration of theme properties
  • Limited to theme-related code generation
  • Dependent on source code structure
  • Best used in structured project setups
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add theme_tailor

Categories

Dependencies

Dependency list 11 items

Source repository

Related projects