CustomAppBar constructor

const CustomAppBar({
  1. String? titleText,
  2. bool showTitle = false,
  3. bool showBackButton = false,
  4. bool showLeadingIcon = false,
  5. bool showTrailingIcon = false,
  6. Widget? trailingIcon,
  7. double elevation = 0,
  8. Function? onTrailingIconPressed,
  9. Widget? leadingIcon,
  10. Color? appBarColor,
  11. TextStyle? backTextStyle,
  12. TextStyle? titleTextStyle,
  13. Function? onLeadingIconPressed,
  14. bool closeOnRight = false,
})

Implementation

const CustomAppBar({
  this.titleText,
  this.showTitle = false,
  this.showBackButton = false,
  this.showLeadingIcon = false,
  this.showTrailingIcon = false,
  this.trailingIcon,
  this.elevation = 0,
  this.onTrailingIconPressed,
  this.leadingIcon,
  this.appBarColor,
  this.backTextStyle,
  this.titleTextStyle,
  this.onLeadingIconPressed,
  this.closeOnRight = false,
});