AntdActionStyle.defaultStyle constructor

AntdActionStyle.defaultStyle(
  1. AntdMapToken token,
  2. AntdBaseAction<AntdActionStyle, dynamic> action
)

Implementation

factory AntdActionStyle.defaultStyle(
    AntdMapToken token, AntdBaseAction action) {
  return AntdActionStyle(
      bodyStyle: AntdBoxStyle(
          color: token.colorBgContainer,
          feedbackStyle: AntdBoxStyle(color: token.colorFill.tertiary),
          padding: token.size.xl.all,
          border: token.border.bottom,
          options: const AntdTapOptions(alwaysReceiveTap: true)),
      titleStyle: AntdBoxStyle(
        alignment: Alignment.center,
        textStyle: token.font.xxl.copyWith(
            color: action.danger == true ? token.colorError : null,
            fontWeight: action.bold == true ? FontWeight.w600 : null),
      ),
      descriptionStyle: AntdBoxStyle(
        textStyle: token.font.md.copyWith(color: token.colorText.tertiary),
        margin: token.size.xs.top,
      ),
      columnStyle: const AntdFlexStyle());
}