AntdPopupStyle.defaultStyle constructor

AntdPopupStyle.defaultStyle(
  1. AntdMapToken token
)

Implementation

factory AntdPopupStyle.defaultStyle(AntdMapToken token) {
  return AntdPopupStyle(
      maskColor: token.colorBlack,
      bodyStyle: AntdBoxStyle(
        color: token.colorBgContainer,
      ),
      closeIcon: const AntdIcon(
        icon: AntdIcons.close,
      ),
      closeIconStyle: AntdIconStyle(
          bodyStyle: const AntdBoxStyle(
            padding: EdgeInsets.all(8),
          ),
          size: token.size.xl.roundToDouble(),
          color: token.colorText.tertiary),
      animation:
          const AntdPopupAnimation(duration: Duration(milliseconds: 400)));
}