customAppBar static method
dynamic
customAppBar({
- dynamic context,
- dynamic leadingIcons,
- dynamic title,
- dynamic backIcon = false,
- dynamic leadingCLick,
- dynamic leading,
- dynamic onActionsClick,
- dynamic actions,
- dynamic hideLeading = false,
- dynamic statusBarColors,
- dynamic appBarBGColor,
- dynamic appBarTitleColor,
- dynamic trailing,
Implementation
static customAppBar(
{context,
leadingIcons,
title,
backIcon = false,
leadingCLick,
leading,
onActionsClick,
actions,
hideLeading = false,
statusBarColors,
appBarBGColor,
appBarTitleColor,
trailing}) {
return AppBar(
primary: true,
centerTitle: false,
systemOverlayStyle: SystemUiOverlayStyle(
statusBarColor: statusBarColors ?? CommonColors.scaffoldBgColor,
// <-- SEE HERE
statusBarIconBrightness: Brightness.light,
//<-- For Android SEE HERE (dark icons)
statusBarBrightness: Brightness.light, //<-- For iOS SEE HERE (dark icons)
),
leading: leading,
title: commonText(
title ?? "",
style: GoogleFonts.roboto(
textStyle: TextStyle(
//height: 1.6,
letterSpacing: 0.28,
fontSize: font_22,
color: appBarTitleColor ?? CommonColors.sampleIDColor,
fontWeight: FontWeight.w500,
overflow: TextOverflow.ellipsis),
),
),
actions: actions,
elevation: radius_0,
backgroundColor: appBarBGColor ?? CommonColors.scaffoldBgColor,
);
}