YaruInfoBox class

Inheritance

Constructors

YaruInfoBox.new({Widget? title, Widget? subtitle, Widget? child, bool isThreeLine = false, Key? key, required YaruInfoType yaruInfoType, BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(kYaruContainerRadius)), Icon? icon, Color? color, TextStyle? titleTextStyle, TextStyle? subTitleTextStyle, Widget? trailing})
Creates YaruTranslucentContainer
const

Properties

borderRadius BorderRadiusGeometry
final
child Widget?
A child Widget inserted into the internal ListTile. Either subtitle or child mus be provided.
final
color Color?
Optional Color to overwrite the color received from YaruInfoType
final
hashCode int
The hash code for this object.
no setterinherited
icon Icon?
Optional Icon to overwrite the icon received from YaruInfoType
final
isThreeLine bool
Whether the internal ListTile is intended to display three lines of text. If true, then subtitle must be non-null (since it is expected to give the second and third lines of text). If false, the list tile is treated as having one line if the subtitle is null and treated as having two lines if the subtitle is non-null. When using a Text widget for title and subtitle, you can enforce line limits using Text.maxLines.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitle Widget?
A subtitle Widget inserted into the internal ListTile. Either subtitle or child mus be provided.
final
subTitleTextStyle TextStyle?
The optional style used for the DefaultTextStyle around the title, defaults to Theme.of(context).textTheme.bodyMedium
final
title Widget?
An optional title Widget inserted into the internal ListTile.
final
titleTextStyle TextStyle?
The optional style used for the DefaultTextStyle around the title, defaults to Theme.of(context).textTheme.headlineSmall?.copyWith(fontWeight: FontWeight.bold, fontSize: 16.0, height: 1.8)
final
trailing Widget?
An optional trailing Widget inserted into the internal ListTile.
final
yaruInfoType YaruInfoType
The YaruInfoType which is used to use predefined its predefined color and Icon for the leading widget of the internal ListTile
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, int wrapWidth = 65}) 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