CommonAppBar constructor
const
CommonAppBar({
- Key? key,
- required String? title,
- bool canPop = false,
- bool centerTitle = false,
- Color backgroundColor = Colors.white,
- Color titleColor = AppColors.primary,
- Color iconColor = Colors.black,
- double elevation = 0,
- double titleFontSize = 18,
- FontWeight titleFontWeight = FontWeight.w700,
- Widget? leading,
- List<
Widget> ? actions, - VoidCallback? onBackPressed,
- 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,
});