CustomAppBar constructor

CustomAppBar({
  1. Key? key,
  2. String title = '',
  3. double height = 40.0,
  4. Widget? titleWidget,
  5. double elevation = 5,
  6. double scrollPosition = -1,
  7. bool isShowIconBack = true,
  8. List<Widget>? actions,
  9. void onPressed()?,
  10. double bottomHeight = 1,
  11. required AppTheme theme,
  12. PreferredSizeWidget? bottom,
})

Implementation

CustomAppBar({
  super.key,
  this.title = '',
  this.height = 40.0,
  this.titleWidget,
  this.elevation = 5,
  this.scrollPosition = -1,
  this.isShowIconBack = true,
  this.actions,
  this.onPressed,
  this.bottomHeight = 1,
  required this.theme,
  PreferredSizeWidget? bottom,
}) : bottom = bottom ??
          PreferredSize(
            preferredSize: Size.fromHeight(bottomHeight),
            child: Container(height: bottomHeight, color: Colors.transparent),
          );