fromThemeGeneratorParameters static method
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,
),
);
}