getDefaultStyle method

  1. @override
AntdActionSheetStyle getDefaultStyle(
  1. BuildContext context,
  2. AntdTheme theme,
  3. AntdMapToken token
)
override

Implementation

@override
AntdActionSheetStyle getDefaultStyle(
    BuildContext context, AntdTheme theme, AntdMapToken token) {
  return AntdActionSheetStyle(
    extraStyle: AntdBoxStyle(
      alignment: Alignment.center,
      padding: token.size.xl.vertical.marge(token.size.lg.horizontal),
      textStyle: token.font.md.copyWith(color: token.colorText.tertiary),
      border: token.border.bottom,
      color: token.colorBgContainer,
    ),
    maskColor: token.colorBlack,
    bodyStyle: AntdBoxStyle(
      color: token.colorFill.tertiary,
      radius: token.radius.top,
    ),
    animation:
        const AntdActionSheetAnimation(duration: Duration(milliseconds: 400)),
    actionStyle: const AntdActionStyle(),
    cancelActionStyle:
        AntdActionStyle(bodyStyle: AntdBoxStyle(margin: token.size.md.top)),
  );
}