YaruDialogTitleBar constructor

const YaruDialogTitleBar({
  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 = defaultShape,
  10. BorderSide? border,
  11. YaruTitleBarStyle? style = YaruTitleBarStyle.normal,
  12. bool? isActive,
  13. bool? isClosable = true,
  14. bool? isDraggable,
  15. bool? isMaximizable = false,
  16. bool? isMinimizable = false,
  17. bool? isRestorable = false,
  18. FutureOr<void> onClose(
    1. BuildContext
    )? = _maybePop,
  19. FutureOr<void> onDrag(
    1. BuildContext
    )? = YaruWindow.drag,
  20. FutureOr<void> onMaximize(
    1. BuildContext
    )? = null,
  21. FutureOr<void> onMinimize(
    1. BuildContext
    )? = null,
  22. FutureOr<void> onRestore(
    1. BuildContext
    )? = null,
  23. FutureOr<void> onShowMenu(
    1. BuildContext
    )? = YaruWindow.showMenu,
  24. Object? heroTag = _kYaruTitleBarHeroTag,
  25. YaruWindowControlPlatform? platform,
  26. EdgeInsetsGeometry? buttonPadding,
  27. double? buttonSpacing,
})

Implementation

const YaruDialogTitleBar({
  super.key,
  super.leading,
  super.title,
  super.actions,
  super.centerTitle,
  super.titleSpacing,
  super.foregroundColor,
  super.backgroundColor,
  super.shape = defaultShape,
  super.border,
  super.style = YaruTitleBarStyle.normal,
  super.isActive,
  super.isClosable = true,
  super.isDraggable,
  super.isMaximizable = false,
  super.isMinimizable = false,
  super.isRestorable = false,
  super.onClose = _maybePop,
  super.onDrag = YaruWindow.drag,
  super.onMaximize = null,
  super.onMinimize = null,
  super.onRestore = null,
  super.onShowMenu = YaruWindow.showMenu,
  super.heroTag = _kYaruTitleBarHeroTag,
  super.platform,
  super.buttonPadding,
  super.buttonSpacing,
});