fromThemeGeneratorParameters static method

DialogTheme fromThemeGeneratorParameters(
  1. ThemeGeneratorParameters parameters
)

Implementation

static DialogTheme fromThemeGeneratorParameters(
  ThemeGeneratorParameters parameters,
) {
  return DialogTheme(
    backgroundColor: _getBackgroundColorFromParameters(parameters),
    openCloseAnimationDuration:
        _getOpenCloseAnimationDurationFromAnimationSpeed(
      parameters.animationSpeed,
    ),
    blurRadius: _getBlurRadiusFromDesignLanguage(parameters.designLanguage),
    borderColor: _getBorderColorFromBrightness(parameters.brightness),
    padding: _getPaddingFromLayout(parameters.layout),
    actionButtonHeight: _getActionButtonHeightFromLayout(parameters.layout),
    actionButtonSectionBackgroundColor:
        _getActionButtonSectionBackgroundColor(parameters),
    distanceBetweenContentAndActionButtons:
        _getDistanceBetweenContentAndActionButtonsFromLayout(
      parameters.layout,
    ),
  );
}