only static method

LoginTemplateStyle only({
  1. EdgeInsets? screenPadding,
  2. double? verticalSpacingBetweenComponents,
  3. double? verticalSpacingBetweenSubComponents,
  4. double? verticalSpacingBetweenGroup,
  5. TextStyle? inlineButtonTextStyle,
  6. TextStyle? buttonTextStyle,
  7. TextStyle? messageTextStyle,
  8. TextStyle? socialButtonTextStyle,
  9. BoxShadow? itemShadow,
  10. TextStyle? textFieldTextStyle,
  11. TextStyle? textFieldHintTextStyle,
  12. TextStyle? textFieldErrorTextStyle,
  13. ButtonStyle? inlineButtonStyle,
  14. Color? primary,
  15. Color? primaryDark,
  16. Color? primaryLight,
  17. Color? buttonOverlay,
  18. ButtonStyle? buttonStyle,
  19. ButtonStyle? socialButtonStyle,
  20. 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,
  );
}