CommonToolBar constructor

CommonToolBar({
  1. Key? key,
  2. double height = 44,
  3. EdgeInsetsGeometry? padding,
  4. Color? backgroundColor,
  5. Widget? title,
  6. EdgeInsetsGeometry? titleMargin,
  7. Widget? leading,
  8. double? leadingPositionedLeft,
  9. bool automaticallyImplyLeading = true,
  10. List<Widget>? actions,
  11. double? actionsPositionedRight,
})

Implementation

CommonToolBar({
  Key? key,
  this.height = 44,
  this.padding,
  this.backgroundColor,
  this.title, // 中间标题视图
  this.titleMargin,
  this.leading, // 左侧(返回)按钮视图
  this.leadingPositionedLeft,
  this.automaticallyImplyLeading = true, // 是否显示左侧(返回)按钮视图

  this.actions,
  this.actionsPositionedRight,
}) : super(key: key);