YaruBanner class

A colorable Card with a border which is tap-able via an onTap callback.

Inheritance

Constructors

YaruBanner({Key? key, VoidCallback? onTap, Color? color, double? elevation, Color? surfaceTintColor, required Widget child, EdgeInsetsGeometry padding = const EdgeInsets.all(kYaruPagePadding), ValueChanged<bool>? onHover, bool? selected, MouseCursor? mouseCursor})
Creates a banner with an arbitrary child widget.
const
YaruBanner.tile({Key? key, VoidCallback? onTap, ValueChanged<bool>? onHover, Color? color, double? elevation, Color? surfaceTintColor, required Widget title, Widget? icon, Widget? subtitle, EdgeInsetsGeometry padding = const EdgeInsets.all(kYaruPagePadding), bool? selected, MouseCursor? mouseCursor})
Creates a banner with a YaruTile child widget.

Properties

child Widget
The widget to display inside the banner.
final
color Color?
The banner's background color. If null, Theme's card color is used.
final
elevation double?
The elevation of the banner determines the strength of surfaceTintColor. A higher elevation means a stronger tint.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mouseCursor MouseCursor?
The cursor for a mouse pointer when it enters or is hovering over the widget.
final
onHover ValueChanged<bool>?
An optional callback used when hovering the YaruBanner
final
onTap VoidCallback?
An optional callback
final
padding EdgeInsetsGeometry
Padding for the banner content. Defaults to EdgeInsets.all(kYaruPagePadding)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected bool?
Whether the banner is selected. A selected banner is highlighted with the theme's primary color.
final
surfaceTintColor Color?
The color used for the soft background tint. If null, Theme's background color is used.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
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