CommonAppBar constructor

const CommonAppBar({
  1. Key? key,
  2. required String? title,
  3. bool canPop = false,
  4. bool centerTitle = false,
  5. Color backgroundColor = Colors.white,
  6. Color titleColor = AppColors.primary,
  7. Color iconColor = Colors.black,
  8. double elevation = 0,
  9. double titleFontSize = 18,
  10. FontWeight titleFontWeight = FontWeight.w700,
  11. Widget? leading,
  12. List<Widget>? actions,
  13. VoidCallback? onBackPressed,
  14. PreferredSizeWidget? bottom,
})

Implementation

const CommonAppBar({
  super.key,
  required this.title,
  this.canPop = false,
  this.centerTitle = false,
  this.backgroundColor = Colors.white,
  this.titleColor = AppColors.primary,
  this.iconColor = Colors.black,
  this.elevation = 0,
  this.titleFontSize = 18,
  this.titleFontWeight = FontWeight.w700,
  this.leading,
  this.actions,
  this.onBackPressed,
  this.bottom,
});