fromThemeGeneratorParameters static method
Implementation
static TabTheme fromThemeGeneratorParameters(
ThemeGeneratorParameters parameters,
) {
return TabTheme(
minWidth: _getMinWidthFromLayout(parameters.layout),
maxWidth: _getMaxWidthFromLayout(parameters.layout),
focusedTabBoxDecoration: _getFocusedTabBoxDecoration(parameters),
separatorBoxDecoration:
_getSeparatorBoxDecorationFromBrightness(parameters.brightness),
lightReflectionBoxDecoration:
_getLightReflectionBoxDecorationFromDesignLanguage(
parameters.designLanguage,
),
textStyle: _getTextStyle(parameters),
unfocusedTabOpacityChangeDuration:
_getUnfocusedTabOpacityChangeDurationFromAnimationSpeed(
parameters.animationSpeed,
),
contentPadding: _getContentPaddingFromLayout(parameters.layout),
openingAnimationDuration: _getOpenAnimationDurationFromAnimationSpeed(
parameters.animationSpeed,
),
);
}