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,
margin: token.size.md.top,
padding: token.size.seed.vertical,
width: 1,
layoutModes: [AntdBoxLayoutMode.factorWidth]);
return AntdSkeletonStyle(
//color: token.colorBgContainer,
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));
}