YaruDialogTitleBar class

A dialog title bar.

YaruDialogTitleBar makes Flutter dialogs feel as close as possible to top- level windows. Dragging the dialog title bar moves the parent window, and it is also possible to access the window context menu as if it was a real top- level window.

Inheritance

Constructors

YaruDialogTitleBar({Key? key, Widget? leading, Widget? title, List<Widget>? actions, bool? centerTitle, double? titleSpacing, Color? foregroundColor, Color? backgroundColor, ShapeBorder? shape = defaultShape, BorderSide? border, YaruTitleBarStyle? style = YaruTitleBarStyle.normal, bool? isActive, bool? isClosable = true, bool? isDraggable, bool? isMaximizable = false, bool? isMinimizable = false, bool? isRestorable = false, FutureOr<void> onClose(BuildContext)? = _maybePop, FutureOr<void> onDrag(BuildContext)? = YaruWindow.drag, FutureOr<void> onMaximize(BuildContext)? = null, FutureOr<void> onMinimize(BuildContext)? = null, FutureOr<void> onRestore(BuildContext)? = null, FutureOr<void> onShowMenu(BuildContext)? = YaruWindow.showMenu, Object? heroTag = _kYaruTitleBarHeroTag, YaruWindowControlPlatform? platform, EdgeInsetsGeometry? buttonPadding, double? buttonSpacing})
const

Properties

actions List<Widget>?
Widgets to display after the title widget.
finalinherited
backgroundColor Color?
The background color.
finalinherited
border BorderSide?
The border.
finalinherited
buttonPadding EdgeInsetsGeometry?
finalinherited
buttonSpacing double?
finalinherited
centerTitle bool?
Whether the title should be centered.
finalinherited
foregroundColor Color?
The foreground color.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
heroTag Object?
The tag to use for the Hero wrapping the window controls.
finalinherited
isActive bool?
Whether the title bar visualized as active.
finalinherited
isClosable bool?
Whether the title bar shows a close button.
finalinherited
isDraggable bool?
Whether the title bar can be dragged to move the window.
finalinherited
isMaximizable bool?
Whether the title bar shows a maximize button.
finalinherited
isMinimizable bool?
Whether the title bar shows a minimize button.
finalinherited
isRestorable bool?
Whether the title bar shows a restore button.
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading Widget?
A widget to display before the title widget.
finalinherited
onClose → (FutureOr<void> Function(BuildContext)?)
Called when the close button is pressed.
finalinherited
onDrag → (FutureOr<void> Function(BuildContext)?)
Called when the title bar is dragged to move the window.
finalinherited
onMaximize → (FutureOr<void> Function(BuildContext)?)
Called when the maximize button is pressed or the title bar is double-clicked while the window is not maximized.
finalinherited
onMinimize → (FutureOr<void> Function(BuildContext)?)
Called when the minimize button is pressed.
finalinherited
onRestore → (FutureOr<void> Function(BuildContext)?)
Called when the restore button is pressed or the title bar is double-clicked while the window is maximized.
finalinherited
onShowMenu → (FutureOr<void> Function(BuildContext)?)
Called when the secondary mouse button is pressed.
finalinherited
platform YaruWindowControlPlatform?
finalinherited
preferredSize Size
The size this widget would prefer if it were otherwise unconstrained.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape ShapeBorder?
The shape.
finalinherited
style YaruTitleBarStyle?
The style.
finalinherited
title Widget?
The primary title widget.
finalinherited
titleSpacing double?
Spacing around the title.
finalinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultShape → const RoundedRectangleBorder