getDefaultStyle method

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

Implementation

@override
AntdCollapseStyle getDefaultStyle(
    BuildContext context, AntdTheme theme, AntdMapToken token) {
  var style = AntdListStyle.defaultStyle(token, false);
  return AntdCollapseStyle(
      itemStyle: style.itemStyle,
      childStyle: style.childStyle
          ?.copyWith(options: const AntdTapOptions(alwaysReceiveTap: true)),
      bodyStyle: style.bodyStyle,
      titleStyle: AntdBoxStyle(textStyle: token.font.lg),
      iconStyle: AntdIconStyle(size: 20, color: token.colorText.quaternary),
      contentStyle: AntdBoxStyle(padding: token.size.md.all),
      icon: const AntdIcon(
        icon: AntdIcons.up,
      ),
      activeIcon: const AntdIcon(
        icon: AntdIcons.down,
      ));
}