AppBarConfig.light constructor

AppBarConfig.light({
  1. double? appBarHeight,
  2. int? titleMaxLength,
  3. double? leftAndRightPadding,
  4. double? itemSpacing,
  5. EdgeInsets? titlePadding,
  6. double? iconSize,
  7. String configId = GLOBAL_CONFIG_ID,
})

Implementation

AppBarConfig.light({
  double? appBarHeight,
  int? titleMaxLength,
  double? leftAndRightPadding,
  double? itemSpacing,
  EdgeInsets? titlePadding,
  double? iconSize,
  String configId = GLOBAL_CONFIG_ID,
})  : _appBarHeight = appBarHeight,
      _titleMaxLength = titleMaxLength,
      _leftAndRightPadding = leftAndRightPadding,
      _itemSpacing = itemSpacing,
      _titlePadding = titlePadding,
      _iconSize = iconSize,
      super(configId: configId) {
  _backgroundColor = Colors.white;
  _leadIconBuilder = () => Image.asset(
        NavBar.iconBackBlack,
        package: 'phoenix_navbar',
        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,
  );
  _systemOverlayStyle = SystemUiOverlayStyle.dark;
}