AppBar2 constructor

const AppBar2({
  1. Key? key,
  2. EdgeInsets? padding,
  3. Widget? leadIcon,
  4. dynamic onLeadTap()?,
  5. double? leadIconSize,
  6. Widget? tail,
  7. bool isLeadVisible = true,
  8. String? title,
  9. TextStyle? titleStyle,
  10. Widget? child,
  11. double? leadIconBottomMargin,
  12. Color? appBarColor,
  13. bool hasShadow = true,
  14. bool hasTopSafe = true,
  15. TextAlign? titleAlign = TextAlign.center,
  16. String? prefixImage,
  17. String? suffixImage,
  18. dynamic onPrefixTap()?,
  19. dynamic onSuffixTap()?,
  20. Widget? suffixWidget,
  21. bool? centerTitle = true,
})

Implementation

const AppBar2({
  super.key,
  this.padding,
  this.leadIcon,
  this.onLeadTap,
  this.leadIconSize,
  this.tail,
  this.isLeadVisible = true,
  this.title,
  this.titleStyle,
  this.child,
  this.leadIconBottomMargin,
  this.appBarColor,
  this.hasShadow = true,
  this.hasTopSafe = true,
  this.titleAlign = TextAlign.center,
  this.prefixImage,
  this.suffixImage,
  this.onPrefixTap,
  this.onSuffixTap,
  this.suffixWidget,
  this.centerTitle = true,
});