fromThemeGeneratorParameters static method

GeneralTheme fromThemeGeneratorParameters(
  1. ThemeGeneratorParameters parameters
)

Implementation

static GeneralTheme fromThemeGeneratorParameters(
  ThemeGeneratorParameters parameters,
) {
  return GeneralTheme(
    isDark: parameters.brightness == Brightness.dark,
    backgroundColor: parameters.filteredBackgroundColor,
    sidebarColor: parameters.filteredBackgroundColor.darker(6),
    accentColor: parameters.primaryColor,
    scrollIntoViewDuration: _getScrollIntoViewDurationFromAnimationSpeed(
      parameters.animationSpeed,
    ),
  );
}