mapSystemThemeBindables method

void mapSystemThemeBindables()

Implementation

void mapSystemThemeBindables()
{
  // System().brightness           = _themeData.brightness == Brightness.dark ? 'dark' : 'light';
  // System().colorscheme          = 'lightblue';

  System.theme.background           = _themeData.colorScheme.background;
  System.theme.onbackground         = _themeData.colorScheme.onBackground;
  System.theme.shadow               = _themeData.colorScheme.shadow;
  System.theme.outline              = _themeData.colorScheme.outline;

  System.theme.surface              = _themeData.colorScheme.surface;
  System.theme.onsurface            = _themeData.colorScheme.onSurface;
  System.theme.surfacevariant       = _themeData.colorScheme.surfaceVariant;
  System.theme.onsurfacevariant     = _themeData.colorScheme.onSurfaceVariant;
  System.theme.inversesurface       = _themeData.colorScheme.inverseSurface;
  System.theme.oninversesurface     = _themeData.colorScheme.onInverseSurface;

  System.theme.primary              = _themeData.colorScheme.primary;
  System.theme.onprimary            = _themeData.colorScheme.onPrimary;
  System.theme.primarycontainer     = _themeData.colorScheme.primaryContainer;
  System.theme.onprimarycontainer   = _themeData.colorScheme.onPrimaryContainer;
  System.theme.inverseprimary       = _themeData.colorScheme.inversePrimary;

  System.theme.secondary            = _themeData.colorScheme.secondary;
  System.theme.onsecondary          = _themeData.colorScheme.onSecondary;
  System.theme.secondarycontainer   = _themeData.colorScheme.secondaryContainer;
  System.theme.onsecondarycontainer = _themeData.colorScheme.onSecondaryContainer;

  System.theme.tertiarycontainer    = _themeData.colorScheme.tertiaryContainer;
  System.theme.ontertiarycontainer  = _themeData.colorScheme.onTertiaryContainer;

  System.theme.error                = _themeData.colorScheme.error;
  System.theme.onerror              = _themeData.colorScheme.onError;
  System.theme.errorcontainer       = _themeData.colorScheme.errorContainer;
  System.theme.onerrorcontainer     = _themeData.colorScheme.onErrorContainer;
}