only static method
LoginTemplateStyle
only({
- EdgeInsets? screenPadding,
- double? verticalSpacingBetweenComponents,
- double? verticalSpacingBetweenSubComponents,
- double? verticalSpacingBetweenGroup,
- TextStyle? inlineButtonTextStyle,
- TextStyle? buttonTextStyle,
- TextStyle? messageTextStyle,
- TextStyle? socialButtonTextStyle,
- BoxShadow? itemShadow,
- TextStyle? textFieldTextStyle,
- TextStyle? textFieldHintTextStyle,
- TextStyle? textFieldErrorTextStyle,
- ButtonStyle? inlineButtonStyle,
- Color? primary,
- Color? primaryDark,
- Color? primaryLight,
- Color? buttonOverlay,
- ButtonStyle? buttonStyle,
- ButtonStyle? socialButtonStyle,
- EdgeInsets? textFieldPadding,
Create your own style that only change some child styles.
Implementation
static LoginTemplateStyle only({
EdgeInsets? screenPadding,
double? verticalSpacingBetweenComponents,
double? verticalSpacingBetweenSubComponents,
double? verticalSpacingBetweenGroup,
TextStyle? inlineButtonTextStyle,
TextStyle? buttonTextStyle,
TextStyle? messageTextStyle,
TextStyle? socialButtonTextStyle,
BoxShadow? itemShadow,
TextStyle? textFieldTextStyle,
TextStyle? textFieldHintTextStyle,
TextStyle? textFieldErrorTextStyle,
ButtonStyle? inlineButtonStyle,
Color? primary,
Color? primaryDark,
Color? primaryLight,
Color? buttonOverlay,
ButtonStyle? buttonStyle,
ButtonStyle? socialButtonStyle,
EdgeInsets? textFieldPadding,
}) {
return defaultTemplate.copyWith(
screenPadding: screenPadding,
verticalSpacingBetweenComponents: verticalSpacingBetweenComponents,
verticalSpacingBetweenSubComponents: verticalSpacingBetweenSubComponents,
verticalSpacingBetweenGroup: verticalSpacingBetweenGroup,
inlineButtonTextStyle: inlineButtonTextStyle,
buttonTextStyle: buttonTextStyle,
messageTextStyle: messageTextStyle,
socialButtonTextStyle: socialButtonTextStyle,
itemShadow: itemShadow,
textFieldTextStyle: textFieldTextStyle,
textFieldHintTextStyle: textFieldHintTextStyle,
textFieldErrorTextStyle: textFieldErrorTextStyle,
inlineButtonStyle: inlineButtonStyle,
primary: primary,
primaryDark: primaryDark,
primaryLight: primaryLight,
buttonOverlay: buttonOverlay,
buttonStyle: buttonStyle,
socialButtonStyle: socialButtonStyle,
textFieldPadding: textFieldPadding,
);
}