getDefaultStyle method
AntdSearchBarStyle
getDefaultStyle(
- BuildContext context,
- AntdTheme theme,
- AntdMapToken token
override
Implementation
@override
AntdSearchBarStyle getDefaultStyle(
BuildContext context, AntdTheme theme, AntdMapToken token) {
var bodyStyle = AntdBoxStyle(
border: token.border.all,
padding: token.size.ms.horizontal.marge(token.size.xs.vertical),
color: token.colorBgContainer,
radius: token.radius.all,
options: const AntdTapOptions(alwaysReceiveTap: true));
return AntdSearchBarStyle(
bodyStyle: bodyStyle,
bodyRowStyle: const AntdFlexStyle(mainAxisSize: MainAxisSize.min),
inputStyle: AntdInputStyle(
textStyle: token.font.md,
placeholderStyle: AntdBoxStyle(
textStyle:
token.font.md.copyWith(color: token.colorText.tertiary))),
activeBodyStyle: AntdBoxStyle(
border: token.border.copyWith(color: token.colorPrimary).all),
iconStyle: AntdIconStyle(
size: 18,
bodyStyle: AntdBoxStyle(
margin:
EdgeInsets.only(right: token.size.xxs.roundToDouble()))),
extraStyle: AntdBoxStyle(
textStyle: token.font.lg,
padding: token.size.lg.horizontal,
),
placeholderRowStyle: const AntdFlexStyle(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center,
));
}