getDefaultStyle method
AntdCascaderViewStyle
getDefaultStyle(
- BuildContext context,
- AntdTheme theme,
- AntdMapToken token
override
Implementation
@override
AntdCascaderViewStyle getDefaultStyle(
BuildContext context, AntdTheme theme, AntdMapToken token) {
var icon = AntdIcon(
icon: AntdIcons.check,
style: AntdIconStyle(color: token.colorPrimary),
);
var optionStyle = AntdCascaderOptionStyle(
childStyle: AntdBoxStyle(
padding: token.size.lg.vertical.marge(token.size.lg.right),
margin: token.size.lg.left,
border: token.border.bottom,
options: const AntdTapOptions(
alwaysReceiveTap: true, behavior: HitTestBehavior.opaque)),
rowStyle: const AntdFlexStyle(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.spaceBetween),
checkIcon: icon,
icon: AntdBox(
style: const AntdBoxStyle(visibility: AntdVisibility.visible),
child: icon,
));
return AntdCascaderViewStyle(
bodyStyle: const AntdBoxStyle(),
tabsStyle: const AntdTabsStyle(),
listStyle:
AntdListStyle(bodyStyle: AntdBoxStyle(border: token.border.bottom)),
optionStyle: optionStyle);
}