YaruTitleBar constructor

const YaruTitleBar({
  1. Key? key,
  2. Widget? leading,
  3. Widget? title,
  4. List<Widget>? actions,
  5. bool? centerTitle,
  6. double? titleSpacing,
  7. Color? foregroundColor,
  8. Color? backgroundColor,
  9. ShapeBorder? shape,
  10. BorderSide? border,
  11. YaruTitleBarStyle? style,
  12. bool? isActive,
  13. bool? isClosable,
  14. bool? isDraggable,
  15. bool? isMaximizable,
  16. bool? isMinimizable,
  17. bool? isRestorable,
  18. FutureOr<void> onClose(
    1. BuildContext
    )?,
  19. FutureOr<void> onDrag(
    1. BuildContext
    )?,
  20. FutureOr<void> onMaximize(
    1. BuildContext
    )?,
  21. FutureOr<void> onMinimize(
    1. BuildContext
    )?,
  22. FutureOr<void> onRestore(
    1. BuildContext
    )?,
  23. FutureOr<void> onShowMenu(
    1. BuildContext
    )?,
  24. Object? heroTag = _kYaruTitleBarHeroTag,
  25. YaruWindowControlPlatform? platform,
  26. EdgeInsetsGeometry? buttonPadding,
  27. double? buttonSpacing,
})

Implementation

const YaruTitleBar({
  super.key,
  this.leading,
  this.title,
  this.actions,
  this.centerTitle,
  this.titleSpacing,
  this.foregroundColor,
  this.backgroundColor,
  this.shape,
  this.border,
  this.style,
  this.isActive,
  this.isClosable,
  this.isDraggable,
  this.isMaximizable,
  this.isMinimizable,
  this.isRestorable,
  this.onClose,
  this.onDrag,
  this.onMaximize,
  this.onMinimize,
  this.onRestore,
  this.onShowMenu,
  this.heroTag = _kYaruTitleBarHeroTag,
  this.platform,
  this.buttonPadding,
  this.buttonSpacing,
});