SubHeading class

A custom widget for displaying subheadings with customizable styling.

Inheritance

Constructors

SubHeading({Key? key, TextStyle? textStyle, double? fontSize, double? wordSpacing, double? letterSpacing, Color? color, Color? backgroundColor, FontWeight? fontWeight, String? fontFamily, Paint? background, Paint? foreground, TextDecoration? decoration, List<Shadow>? shadows, TextBaseline? textBaseline, FontStyle? fontStyle, TextOverflow? overflow, TextAlign? textAlign, required String text})
Constructs a SubHeading widget.
const

Properties

background Paint?
The background paint of the subheading text.
final
backgroundColor Color?
The background color of the subheading.
final
color Color?
The color of the subheading text.
final
decoration TextDecoration?
The decoration to be applied to the subheading text.
final
fontFamily String?
The font family of the subheading text.
final
fontSize double?
The font size of the subheading.
final
fontStyle FontStyle?
The font style of the subheading text.
final
fontWeight FontWeight?
The font weight of the subheading text.
final
foreground Paint?
The foreground paint of the subheading text.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
letterSpacing double?
The space between characters in the subheading.
final
overflow TextOverflow?
The overflow behavior for the subheading text.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadows List<Shadow>?
The list of shadows applied to the subheading text.
final
text String
The text to be displayed in the subheading.
final
textAlign TextAlign?
The alignment of the subheading text within its container.
final
textBaseline TextBaseline?
The baseline alignment of the subheading text.
final
textStyle TextStyle?
The style to be applied to the subheading.
final
wordSpacing double?
The space between words in the subheading.
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