getDefaultStyle method

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

Implementation

@override
AntdSegmentedStyle getDefaultStyle(
    BuildContext context, AntdTheme theme, AntdMapToken token) {
  return AntdSegmentedStyle(
      bodyStyle: AntdBoxStyle(
          padding: token.size.xxs.all,
          color: token.colorFill.tertiary,
          radius: token.radius.all),
      bodyRowStyle: const AntdFlexStyle(mainAxisSize: MainAxisSize.min),
      itemStyle: AntdBoxStyle(
        padding: token.size.lg.horizontal.marge(token.size.xs.vertical),
      ),
      activeItemStyle: AntdBoxStyle(color: token.colorBgContainer));
}