NikuButtonStyle constructor
NikuButtonStyle({
- NikuState<
NikuTextStyle?> ? textStyleState, - NikuState<
Color?> ? backgroundColorState, - NikuState<
Color?> ? foregroundColorState, - NikuState<
Color?> ? overlayColorState, - NikuState<
Color?> ? shadowColorState, - NikuState<
double?> ? elevationState, - NikuState<
EdgeInsets?> ? paddingState, - NikuState<
Size?> ? minimumSizeState, - NikuState<
Size?> ? fixedSizeState, - NikuState<
Size?> ? maximumSizeState, - NikuState<
BorderSide?> ? sideState, - NikuState<
OutlinedBorder?> ? shapeState, - NikuState<
MouseCursor?> ? mouseCursorState, - VisualDensity? visualDensity,
- MaterialTapTargetSize? tapTargetSize,
- Duration? animationDuration,
- bool? enableFeedback,
- AlignmentGeometry? alignment,
- InteractiveInkFeatureFactory? splashFactory,
- NikuTextStyle? textStyle,
- Color? backgroundColor,
- Color? foregroundColor,
- Color? overlayColor,
- Color? shadowColor,
- double? elevation,
- EdgeInsets? padding,
- Size? minimumSize,
- Size? fixedSize,
- Size? maximumSize,
- BorderSide? side,
- OutlinedBorder? shape,
- MouseCursor? mouseCursor,
Implementation
NikuButtonStyle({
this.textStyleState,
this.backgroundColorState,
this.foregroundColorState,
this.overlayColorState,
this.shadowColorState,
this.elevationState,
this.paddingState,
this.minimumSizeState,
this.fixedSizeState,
this.maximumSizeState,
this.sideState,
this.shapeState,
this.mouseCursorState,
this.visualDensity,
this.tapTargetSize,
this.animationDuration,
this.enableFeedback,
this.alignment,
this.splashFactory,
NikuTextStyle? textStyle,
Color? backgroundColor,
Color? foregroundColor,
Color? overlayColor,
Color? shadowColor,
double? elevation,
EdgeInsets? padding,
Size? minimumSize,
Size? fixedSize,
Size? maximumSize,
BorderSide? side,
OutlinedBorder? shape,
MouseCursor? mouseCursor,
}) {
if (textStyle != null) textStyleState = NikuState.all(textStyle);
if (backgroundColor != null)
backgroundColorState = NikuState.all(backgroundColor);
if (foregroundColor != null)
foregroundColorState = NikuState.all(foregroundColor);
if (overlayColor != null) overlayColorState = NikuState.all(overlayColor);
if (shadowColor != null) shadowColorState = NikuState.all(shadowColor);
if (elevation != null) elevationState = NikuState.all(elevation);
if (padding != null) paddingState = NikuState.all(padding);
if (minimumSize != null) minimumSizeState = NikuState.all(minimumSize);
if (fixedSize != null) fixedSizeState = NikuState.all(fixedSize);
if (maximumSize != null) maximumSizeState = NikuState.all(maximumSize);
if (side != null) sideState = NikuState.all(side);
if (shape != null) shapeState = NikuState.all(shape);
if (mouseCursor != null) mouseCursorState = NikuState.all(mouseCursor);
}