YaruBanner class
A colorable Card with a border which is tap-able via an onTap callback.
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