NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
Annotations for creating and managing theme color variables in Flutter applications.
Last release 3 months ago
19 Jun 2026
Ships fairly regularly
a new release about every 9 months
Nearly every release is documented
notes for 3 of 3 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
3 releases · first in 2024
One column per month.
Removed the vars parameter from the @BestTheme annotation.
vars parameter from the @BestTheme annotation.Support for automatic generation of:
BestColorBestTextStyleBestAssetImproved compile-time performance.
Cleaner and more maintainable theme definitions.
Stronger type safety through static token discovery.
Remove the vars parameter from your annotation and define your theme tokens as static const fields inside the theme class.
@BestTheme(
vars: ['primary', 'card'],
extensionName: 'myColors',
)
class MyTheme extends _$MyTheme {}
@BestTheme(
extensionName: 'myColors',
)
class MyTheme extends _$MyTheme {
static const primary = BestColor(
light: Colors.blue,
dark: Colors.indigo,
);
static const card = BestColor(
light: Colors.white,
dark: Colors.black,
);
}
Added extensionName parameter to @BestTheme annotation (default: 'bestTheme'). Allows customizing the BuildContext getter name generated for accessing
extensionName parameter to @BestTheme annotation (default: 'bestTheme').
Allows customizing the BuildContext getter name generated for accessing theme colors.
Example: @BestTheme(vars: [...], extensionName: 'appColors') → context.appColors.color1.@BestTheme annotation now requires the companion best_theme_generator 2.0.0 which
generates a ThemeExtension-based class instead of the previous singleton approach.ThemeExtension system (ThemeData.extensions) for
proper light/dark theme integration with MaterialApp.ThemeMode-based singleton pattern with buildLightTheme / buildDarkTheme
overridable hooks on the generated base class, allowing full ThemeData customization.Initial release of best_theme_annotation package.
best_theme_annotation package.@BestTheme annotation to define custom theme colors and modes.best_theme_generator.DostyColor.Your coding agent can read these notes before it upgrades. Set up the MCP server →