appBarNomal function
Implementation
AppBar appBarNomal(BuildContext context, String title,
{bool showBack = true,
Widget? action,
Color? colorBackground,
Color? colorText}) {
return AppBar(
backgroundColor: colorBackground ?? Colors.white,
centerTitle: Platform.isIOS,
leading: showBack ? BackButton(color: titleTextColor) : Container(),
title: Text(
title,
style: TextStyle(
color: colorText ?? titleTextColor,
fontWeight: FontWeight.w600,
fontSize: 16),
),
actions: [action != null ? action : Container()],
brightness: Brightness.light,
);
}