getDefaultStyle method
AntdCheckItemStyle
getDefaultStyle(
- BuildContext context,
- AntdTheme theme,
- AntdMapToken token
override
Implementation
@override
AntdCheckItemStyle getDefaultStyle(
BuildContext context, AntdTheme theme, AntdMapToken token) {
return AntdCheckItemStyle(
bodyStyle: AntdBoxStyle(
color: token.colorBgContainer,
options: const AntdTapOptions(alwaysReceiveTap: true)),
itemStyle: AntdBoxStyle(
padding: token.size.lg.vertical.marge(token.size.lg.right),
margin: token.size.lg.left,
border: AntdScrollItemProvider.ofMaybe(context)?.position ==
AntdScrollItemPosition.last
? null
: token.border.bottom),
itemRowStyle: const AntdFlexStyle(
mainAxisAlignment: MainAxisAlignment.spaceBetween),
iconStyle: AntdIconStyle(
size: token.size.xxl.roundToDouble(),
color: token.colorPrimary,
bodyStyle: AntdBoxStyle(padding: token.size.lg.left)),
activeIcon: const AntdIcon(
icon: AntdIcons.check,
),
unActiveIcon: const AntdBox(
style: AntdBoxStyle(visibility: AntdVisibility.visible),
child: AntdIcon(
icon: AntdIcons.check,
),
));
}