CustomAppBar constructor

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

Implementation

const CustomAppBar({
  Key? key,
  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,
  this.isDesktop = false,
  this.toolbarHeight = 70,
}) : super(key: key);