YaruBanner class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- YaruBanner
Constructors
- YaruBanner({Key? key, dynamic onTap()?, Color? surfaceTintColor, bool watermark = false, required String name, String? summary, String? url, Widget? icon, required IconData fallbackIconData, TextOverflow? nameTextOverflow, TextOverflow? summaryTextOverflow, double? bannerWidth, Widget? subtitleWidget})
-
const
Properties
-
Optional width for the banner - if null it defaults to 370.
final
- fallbackIconData → IconData
-
If the icon is not loaded this fallback icon is displayed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget?
-
The Widget used as the trailing icon.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- name → String
-
The name of the card
final
- nameTextOverflow → TextOverflow?
-
final
- onTap → (dynamic Function()?)
-
An optional callback
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtitleWidget → Widget?
-
final
- summary → String?
-
A summary string shown in the second line.
final
- summaryTextOverflow → TextOverflow?
-
Optional TextOverflow
final
- surfaceTintColor → Color?
-
The color used for the soft background tint.
If null Theme's background color is used.
final
- url → String?
-
The url to include a YaruSafeImage.
final
- watermark → bool
-
If true the icon will be displayed a second time, with small opacity.
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