headerView method

AppBar headerView({
  1. required String title,
  2. Color backgroundColor = white,
  3. Color textColor = neutral_500,
  4. List<Widget>? actions,
  5. Widget? leading,
  6. TabBar? tabBar,
  7. double elevation = 0.5,
  8. bool isShowBack = true,
})
inherited

Implementation

AppBar headerView(
    {required String title,
    Color backgroundColor = white,
    Color textColor = neutral_500,
    List<Widget>? actions,
    Widget? leading,
    TabBar? tabBar,
    double elevation = 0.5,
    bool isShowBack = true}) {
  return AppBar(
    iconTheme: IconThemeData(
      color: textColor, //change your color here
    ),
    elevation: elevation,
    bottom: tabBar,
    backgroundColor: backgroundColor,
    centerTitle: true,
    automaticallyImplyLeading: isShowBack,
    actions: actions,
    leading: leading,
    title: Text(
      title.tr,
      textAlign: TextAlign.center,
      style: boldStyle.copyWith(fontSize: fontSize16, color: textColor),
    ),
  );
}