IconTitleIconIconAppBar constructor

IconTitleIconIconAppBar({
  1. Key? key,
  2. IconData leftIcon = Icons.menu,
  3. bool showLeftIcon = true,
  4. VoidCallback? leftIconClickedCallback,
  5. ThemeGroupType leftIconType = ThemeGroupType.MOM,
  6. Emphasis leftIconEmphasis = Emphasis.HIGH,
  7. dynamic title,
  8. bool showTitle = true,
  9. VoidCallback? titleClickedCallback,
  10. ThemeGroupType titleType = ThemeGroupType.MOM,
  11. Emphasis titleEmphasis = Emphasis.HIGH,
  12. IconData rightIcon = Icons.account_circle,
  13. bool showRightIcon = true,
  14. VoidCallback? rightIconClickedCallback,
  15. ThemeGroupType rightIconType = ThemeGroupType.MOM,
  16. Emphasis rightIconEmphasis = Emphasis.HIGH,
  17. IconData rightIcon2 = Icons.account_circle,
  18. bool showRightIcon2 = true,
  19. VoidCallback? rightIcon2ClickedCallback,
  20. ThemeGroupType rightIcon2Type = ThemeGroupType.MOM,
  21. Emphasis rightIcon2Emphasis = Emphasis.HIGH,
  22. dynamic backgroundColor,
  23. 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,
    ),
  ],
);