TokenThemeContextX extension
Convenience accessors for token_theme_kit on a BuildContext.
Use tokens for semantic design tokens and scheme for the active Material ColorScheme.
Example:
final t = context.tokens;
return Container(color: t.surface.surface);
- on
Properties
- scheme → ColorScheme
-
Available on BuildContext, provided by the TokenThemeContextX extension
Returns the current Material ColorScheme from Theme.no setter - tokens → AppColorTokens
-
Available on BuildContext, provided by the TokenThemeContextX extension
Returns the active AppColorTokens from the nearest TokenScope.no setter