copyWith method
UIProThemeData
copyWith({
- Color? primaryColor,
- Color? secondaryColor,
- Color? backgroundColor,
- Color? surfaceColor,
- Color? textColor,
- Color? textSecondaryColor,
- Color? errorColor,
- Color? successColor,
- Color? warningColor,
- Color? dividerColor,
- Color? disabledColor,
- String? fontFamily,
- double? fontSizeBase,
- double? fontSizeSmall,
- double? fontSizeLarge,
- double? fontSizeXLarge,
- FontWeight? fontWeightRegular,
- FontWeight? fontWeightMedium,
- FontWeight? fontWeightBold,
- double? letterSpacing,
- double? lineHeight,
- double? spacingXS,
- double? spacingSM,
- double? spacingMD,
- double? spacingLG,
- double? spacingXL,
- double? borderRadius,
- double? borderRadiusSmall,
- double? borderRadiusLarge,
- double? borderWidth,
- double? buttonHeight,
- double? buttonPaddingHorizontal,
- double? buttonPaddingVertical,
- double? buttonElevation,
- Color? buttonTextColor,
- Color? buttonDisabledColor,
- Color? buttonDisabledTextColor,
- Color? textFieldBackgroundColor,
- Color? textFieldBorderColor,
- Color? textFieldFocusedBorderColor,
- Color? textFieldHintColor,
- EdgeInsets? textFieldContentPadding,
- Color? shimmerBaseColor,
- Color? shimmerHighlightColor,
- Duration? shimmerDuration,
- double? shimmerBorderRadius,
- Color? appBarBackgroundColor,
- Color? appBarForegroundColor,
- double? appBarElevation,
- TextStyle? appBarTitleStyle,
- bool? appBarCenterTitle,
- Duration? animationDuration,
- Duration? animationDurationFast,
- Duration? animationDurationSlow,
- Curve? animationCurve,
Creates a copy of this theme data with the given fields replaced.
Implementation
UIProThemeData copyWith({
Color? primaryColor,
Color? secondaryColor,
Color? backgroundColor,
Color? surfaceColor,
Color? textColor,
Color? textSecondaryColor,
Color? errorColor,
Color? successColor,
Color? warningColor,
Color? dividerColor,
Color? disabledColor,
String? fontFamily,
double? fontSizeBase,
double? fontSizeSmall,
double? fontSizeLarge,
double? fontSizeXLarge,
FontWeight? fontWeightRegular,
FontWeight? fontWeightMedium,
FontWeight? fontWeightBold,
double? letterSpacing,
double? lineHeight,
double? spacingXS,
double? spacingSM,
double? spacingMD,
double? spacingLG,
double? spacingXL,
double? borderRadius,
double? borderRadiusSmall,
double? borderRadiusLarge,
double? borderWidth,
double? buttonHeight,
double? buttonPaddingHorizontal,
double? buttonPaddingVertical,
double? buttonElevation,
Color? buttonTextColor,
Color? buttonDisabledColor,
Color? buttonDisabledTextColor,
Color? textFieldBackgroundColor,
Color? textFieldBorderColor,
Color? textFieldFocusedBorderColor,
Color? textFieldHintColor,
EdgeInsets? textFieldContentPadding,
Color? shimmerBaseColor,
Color? shimmerHighlightColor,
Duration? shimmerDuration,
double? shimmerBorderRadius,
Color? appBarBackgroundColor,
Color? appBarForegroundColor,
double? appBarElevation,
TextStyle? appBarTitleStyle,
bool? appBarCenterTitle,
Color? bottomNavBackgroundColor,
Color? bottomNavSelectedColor,
Color? bottomNavUnselectedColor,
double? bottomNavElevation,
double? bottomNavIconSize,
bool? bottomNavShowLabels,
double? bottomNavIndicatorHeight,
Duration? animationDuration,
Duration? animationDurationFast,
Duration? animationDurationSlow,
Curve? animationCurve,
}) {
return UIProThemeData(
primaryColor: primaryColor ?? this.primaryColor,
secondaryColor: secondaryColor ?? this.secondaryColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
surfaceColor: surfaceColor ?? this.surfaceColor,
textColor: textColor ?? this.textColor,
textSecondaryColor: textSecondaryColor ?? this.textSecondaryColor,
errorColor: errorColor ?? this.errorColor,
successColor: successColor ?? this.successColor,
warningColor: warningColor ?? this.warningColor,
dividerColor: dividerColor ?? this.dividerColor,
disabledColor: disabledColor ?? this.disabledColor,
fontFamily: fontFamily ?? this.fontFamily,
fontSizeBase: fontSizeBase ?? this.fontSizeBase,
fontSizeSmall: fontSizeSmall ?? this.fontSizeSmall,
fontSizeLarge: fontSizeLarge ?? this.fontSizeLarge,
fontSizeXLarge: fontSizeXLarge ?? this.fontSizeXLarge,
fontWeightRegular: fontWeightRegular ?? this.fontWeightRegular,
fontWeightMedium: fontWeightMedium ?? this.fontWeightMedium,
fontWeightBold: fontWeightBold ?? this.fontWeightBold,
letterSpacing: letterSpacing ?? this.letterSpacing,
lineHeight: lineHeight ?? this.lineHeight,
spacingXS: spacingXS ?? this.spacingXS,
spacingSM: spacingSM ?? this.spacingSM,
spacingMD: spacingMD ?? this.spacingMD,
spacingLG: spacingLG ?? this.spacingLG,
spacingXL: spacingXL ?? this.spacingXL,
borderRadius: borderRadius ?? this.borderRadius,
borderRadiusSmall: borderRadiusSmall ?? this.borderRadiusSmall,
borderRadiusLarge: borderRadiusLarge ?? this.borderRadiusLarge,
borderWidth: borderWidth ?? this.borderWidth,
buttonHeight: buttonHeight ?? this.buttonHeight,
buttonPaddingHorizontal:
buttonPaddingHorizontal ?? this.buttonPaddingHorizontal,
buttonPaddingVertical:
buttonPaddingVertical ?? this.buttonPaddingVertical,
buttonElevation: buttonElevation ?? this.buttonElevation,
buttonTextColor: buttonTextColor ?? this.buttonTextColor,
buttonDisabledColor: buttonDisabledColor ?? this.buttonDisabledColor,
buttonDisabledTextColor:
buttonDisabledTextColor ?? this.buttonDisabledTextColor,
textFieldBackgroundColor:
textFieldBackgroundColor ?? this.textFieldBackgroundColor,
textFieldBorderColor: textFieldBorderColor ?? this.textFieldBorderColor,
textFieldFocusedBorderColor:
textFieldFocusedBorderColor ?? this.textFieldFocusedBorderColor,
textFieldHintColor: textFieldHintColor ?? this.textFieldHintColor,
textFieldContentPadding:
textFieldContentPadding ?? this.textFieldContentPadding,
shimmerBaseColor: shimmerBaseColor ?? this.shimmerBaseColor,
shimmerHighlightColor:
shimmerHighlightColor ?? this.shimmerHighlightColor,
shimmerDuration: shimmerDuration ?? this.shimmerDuration,
shimmerBorderRadius: shimmerBorderRadius ?? this.shimmerBorderRadius,
appBarBackgroundColor:
appBarBackgroundColor ?? this.appBarBackgroundColor,
appBarForegroundColor:
appBarForegroundColor ?? this.appBarForegroundColor,
appBarElevation: appBarElevation ?? this.appBarElevation,
appBarTitleStyle: appBarTitleStyle ?? this.appBarTitleStyle,
appBarCenterTitle: appBarCenterTitle ?? this.appBarCenterTitle,
bottomNavBackgroundColor:
bottomNavBackgroundColor ?? this.bottomNavBackgroundColor,
bottomNavSelectedColor:
bottomNavSelectedColor ?? this.bottomNavSelectedColor,
bottomNavUnselectedColor:
bottomNavUnselectedColor ?? this.bottomNavUnselectedColor,
bottomNavElevation: bottomNavElevation ?? this.bottomNavElevation,
bottomNavIconSize: bottomNavIconSize ?? this.bottomNavIconSize,
bottomNavShowLabels: bottomNavShowLabels ?? this.bottomNavShowLabels,
bottomNavIndicatorHeight:
bottomNavIndicatorHeight ?? this.bottomNavIndicatorHeight,
animationDuration: animationDuration ?? this.animationDuration,
animationDurationFast:
animationDurationFast ?? this.animationDurationFast,
animationDurationSlow:
animationDurationSlow ?? this.animationDurationSlow,
animationCurve: animationCurve ?? this.animationCurve,
);
}