getDefaultStyle method

  1. @override
AntdNavBarStyle getDefaultStyle(
  1. BuildContext context,
  2. AntdTheme theme,
  3. AntdMapToken token
)
override

Implementation

@override
AntdNavBarStyle getDefaultStyle(
    BuildContext context, AntdTheme theme, AntdMapToken token) {
  return AntdNavBarStyle(
      bodyStyle: AntdBoxStyle(
          padding: token.size.lg.horizontal.marge(token.size.xs.vertical),
          textStyle: token.font.md,
          options: const AntdTapOptions(alwaysReceiveTap: true)),
      bodyRowStyle: const AntdFlexStyle(
        mainAxisSize: MainAxisSize.min,
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        crossAxisAlignment: CrossAxisAlignment.center,
      ),
      backIconStyle: AntdIconStyle(
          size: token.size.xxl.roundToDouble(),
          color: token.colorText,
          bodyStyle: AntdBoxStyle(
              margin: token.size.xs.right,
              padding: token.size.sm.vertical,
              options: const AntdTapOptions(alwaysReceiveTap: true))),
      backStyle: AntdBoxStyle(
          margin: token.size.xl.right,
          options: const AntdTapOptions(alwaysReceiveTap: true)),
      backRowStyle: const AntdFlexStyle(
          mainAxisAlignment: MainAxisAlignment.start,
          crossAxisAlignment: CrossAxisAlignment.center,
          expanded: true),
      titleStyle: AntdBoxStyle(
          textStyle:
              token.font.xxl.copyWith(fontWeight: token.fontWeightStrong)),
      titleColumnStyle: const AntdFlexStyle(
          mainAxisSize: MainAxisSize.min,
          mainAxisAlignment: MainAxisAlignment.center,
          expanded: true),
      subTitleStyle: AntdBoxStyle(textStyle: token.font.xs),
      rightExpanded: true);
}