AppBarConfig.dark constructor

AppBarConfig.dark({
  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.dark({
  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 = const Color(0xff2E313B);
  _leadIconBuilder = () => Image.asset(
        NavBar.iconBackWhite,
        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.darkTextColor,
  );
  _actionsStyle = BaseTextStyle(
    color: phoenix.AppBarTheme.darkTextColor,
    fontSize: phoenix.AppBarTheme.actionFontSize,
    fontWeight: FontWeight.w600,
  );
  _systemOverlayStyle = SystemUiOverlayStyle.light;
}