Instantly retrieve your applicationās ThemeData, ColorScheme, and TextTheme with simple context getters, ensuring design consistency across your app.
1
š¼ļø Primary Access
ThemeData
Retrieves the entire applicationās ThemeData. The top-level shortcut for any theme property.
final background = context.theme.scaffoldBackgroundColor;
ColorScheme
Retrieves the applicationās primary ColorScheme. Recommended for accessing semantic colors like primary, error, and surface.
Container( color: context.colorScheme.primary,);
2
āļø Typography & Icons
TextTheme
Retrieves the applicationās primary TextTheme. Provides quick access to standard styles (e.g., headline, title, body).