CustomAppBar constructor

CustomAppBar({
  1. Key? key,
  2. double? elevation = 0.0,
  3. double? fontSize = size22,
  4. FontWeight? fontWeight = fontWeigh500,
  5. GlobalKey<ScaffoldState>? scaffoldKey,
  6. List<Widget>? actionItems,
  7. Size? height,
  8. required String title,
  9. Widget? leading,
  10. Widget? bottomLineWidget,
})

Implementation

CustomAppBar(
    {Key? key,
    this.elevation = 0.0,
    this.fontSize = size22,
    this.fontWeight = fontWeigh500,
    this.scaffoldKey,
    this.actionItems,
    this.height,
    required this.title,
    this.leading,
    this.bottomLineWidget})
    : preferredSize = Size.fromHeight(kAppbarHeight),
      super(key: key);