getCurrentTheme static method

ThemeData getCurrentTheme({
  1. @Deprecated('No longer needed; the theme can be read without a BuildContext.') BuildContext? context,
})

Returns the ThemeData currently applied.

Throws AppThemeException if init has not completed.

Implementation

static ThemeData getCurrentTheme({
  @Deprecated('No longer needed; the theme can be read without a BuildContext.') BuildContext? context,
}) =>
    _requireBloc().state.themeData;