IconTitleIconIconAppBar constructor
IconTitleIconIconAppBar({
- Key? key,
- IconData leftIcon = Icons.menu,
- bool showLeftIcon = true,
- VoidCallback? leftIconClickedCallback,
- ThemeGroupType leftIconType = ThemeGroupType.MOM,
- Emphasis leftIconEmphasis = Emphasis.HIGH,
- dynamic title,
- bool showTitle = true,
- VoidCallback? titleClickedCallback,
- ThemeGroupType titleType = ThemeGroupType.MOM,
- Emphasis titleEmphasis = Emphasis.HIGH,
- IconData rightIcon = Icons.account_circle,
- bool showRightIcon = true,
- VoidCallback? rightIconClickedCallback,
- ThemeGroupType rightIconType = ThemeGroupType.MOM,
- Emphasis rightIconEmphasis = Emphasis.HIGH,
- IconData rightIcon2 = Icons.account_circle,
- bool showRightIcon2 = true,
- VoidCallback? rightIcon2ClickedCallback,
- ThemeGroupType rightIcon2Type = ThemeGroupType.MOM,
- Emphasis rightIcon2Emphasis = Emphasis.HIGH,
- dynamic backgroundColor,
- dynamic elevation,
Implementation
IconTitleIconIconAppBar({
super.key,
this.leftIcon = Icons.menu,
this.showLeftIcon = true,
this.leftIconClickedCallback,
this.leftIconType = ThemeGroupType.MOM,
this.leftIconEmphasis = Emphasis.HIGH,
title,
this.showTitle = true,
this.titleClickedCallback,
this.titleType = ThemeGroupType.MOM,
this.titleEmphasis = Emphasis.HIGH,
this.rightIcon = Icons.account_circle,
this.showRightIcon = true,
this.rightIconClickedCallback,
this.rightIconType = ThemeGroupType.MOM,
this.rightIconEmphasis = Emphasis.HIGH,
this.rightIcon2 = Icons.account_circle,
this.showRightIcon2 = true,
this.rightIcon2ClickedCallback,
this.rightIcon2Type = ThemeGroupType.MOM,
this.rightIcon2Emphasis = Emphasis.HIGH,
backgroundColor,
elevation
}) : super(
backgroundColor: backgroundColor ?? Colors.transparent,
elevation: elevation ?? 0.0,
leading: !showLeftIcon ? Container() : ThemedIconButton(
leftIcon,
type: leftIconType,
emphasis: leftIconEmphasis,
onPressedCallback: leftIconClickedCallback,
),
title: !showTitle ? Container() : ThemedTitle(
title,
type: titleType,
emphasis: titleEmphasis,
//TODO - onTapTitle
),
centerTitle: true,
actions: <Widget>[
ThemedIconButton(
rightIcon2,
type: rightIcon2Type,
emphasis: rightIcon2Emphasis,
onPressedCallback: rightIcon2ClickedCallback,
),
ThemedIconButton(
rightIcon,
type: rightIconType,
emphasis: rightIconEmphasis,
onPressedCallback: rightIconClickedCallback,
),
],
);