getDefaultStyle method
AntdSkeletonStyle
getDefaultStyle(
- BuildContext context,
- AntdTheme theme,
- AntdMapToken token
override
Implementation
@override
AntdSkeletonStyle getDefaultStyle(
BuildContext context, AntdTheme theme, AntdMapToken token) {
var rowStyle = AntdBoxStyle(
radius: token.radius.sm.all,
color: token.colorFill.quaternary,
padding: token.size.seed.vertical,
width: 1,
layoutModes: [AntdBoxLayoutMode.factorWidth]);
return AntdSkeletonStyle(
color: token.colorFill,
wrapStyle: AntdWrapStyle(
runSpacing: token.size.lg.toDouble(),
),
bodyStyle: AntdBoxStyle(
padding: token.size.xl.top.marge(token.size.md.bottom)),
titleStyle: rowStyle.copyFrom(AntdBoxStyle(
padding: token.size.xl.vertical,
width: 0.7,
)),
rowStyle: rowStyle,
lastRowStyle: rowStyle.copyWith(width: 0.6));
}