YaruTitleBar constructor
const
YaruTitleBar({
- Key? key,
- Widget? leading,
- Widget? title,
- List<
Widget> ? actions, - bool? centerTitle,
- double? titleSpacing,
- Color? foregroundColor,
- Color? backgroundColor,
- ShapeBorder? shape,
- BorderSide? border,
- YaruTitleBarStyle? style,
- bool? isActive,
- bool? isClosable,
- bool? isDraggable,
- bool? isMaximizable,
- bool? isMinimizable,
- bool? isRestorable,
- FutureOr<
void> onClose()?, - FutureOr<
void> onDrag()?, - FutureOr<
void> onMaximize()?, - FutureOr<
void> onMinimize()?, - FutureOr<
void> onRestore()?, - FutureOr<
void> onShowMenu()?, - Object? heroTag = _kYaruTitleBarHeroTag,
- YaruWindowControlPlatform? platform,
- EdgeInsetsGeometry? buttonPadding,
- 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,
});