AppBarConfig.light constructor
AppBarConfig.light({})
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;
}