customAppBar static method

dynamic customAppBar({
  1. dynamic context,
  2. dynamic leadingIcons,
  3. dynamic title,
  4. dynamic backIcon = false,
  5. dynamic leadingCLick,
  6. dynamic leading,
  7. dynamic onActionsClick,
  8. dynamic actions,
  9. dynamic hideLeading = false,
  10. dynamic statusBarColors,
  11. dynamic appBarBGColor,
  12. dynamic appBarTitleColor,
  13. 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,
      );
    }