Headline class

A custom widget for displaying headlines with customizable styling.

Inheritance

Constructors

Headline({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 Headline widget.
const

Properties

background Paint?
The background paint of the headline text.
final
backgroundColor Color?
The background color of the headline.
final
color Color?
The color of the headline text.
final
decoration TextDecoration?
The decoration to be applied to the headline text.
final
fontFamily String?
The font family of the headline text.
final
fontSize double?
The font size of the headline.
final
fontStyle FontStyle?
The font style of the headline text.
final
fontWeight FontWeight?
The font weight of the headline text.
final
foreground Paint?
The foreground paint of the headline 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 headline.
final
overflow TextOverflow?
The overflow behavior for the headline 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 headline text.
final
text String
The text to be displayed in the headline.
final
textAlign TextAlign?
The alignment of the headline text within its container.
final
textBaseline TextBaseline?
The baseline alignment of the headline text.
final
textStyle TextStyle?
The style to be applied to the headline.
final
wordSpacing double?
The space between words in the headline.
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