defaultAppBarConfig property

AppBarConfig defaultAppBarConfig
getter/setter pair

导航栏配置

Implementation

static AppBarConfig defaultAppBarConfig = AppBarConfig(
  backgroundColor: Colors.white,
  appBarHeight: phoenix.AppBarTheme.appBarHeight,
  leadIconBuilder: () => Image.asset(
    NavBar.iconBackBlack,
    package: 'phoenix_navbar', //BaseStrings.flutterPackageName,
    width: phoenix.AppBarTheme.iconSize,
    height: phoenix.AppBarTheme.iconSize,
    fit: BoxFit.fitHeight,
  ),
  titleStyle: BaseTextStyle(
    fontSize: phoenix.AppBarTheme.titleFontSize,
    fontWeight: FontWeight.w600,
    color: phoenix.AppBarTheme.lightTextColor,
  ),
  actionsStyle: BaseTextStyle(
    color: phoenix.AppBarTheme.lightTextColor,
    fontSize: phoenix.AppBarTheme.actionFontSize,
    fontWeight: FontWeight.w600,
  ),
  titleMaxLength: phoenix.AppBarTheme.maxLength,
  leftAndRightPadding: 20.0,
  itemSpacing: phoenix.AppBarTheme.iconMargin,
  titlePadding: EdgeInsets.zero,
  iconSize: phoenix.AppBarTheme.iconSize,
  configId: PHOENIX_CONFIG_ID,
  systemUiOverlayStyle: SystemUiOverlayStyle.dark,
  showDefaultBottom: false,
);