HMSTitleText class
HMSTitleText is a widget that is used to render the title text It takes following parameters: text is the text to be rendered, this is a required parameter textColor is the color of the text, this is a required parameter letterSpacing is the spacing between the letters, default value is 0.5 lineHeight is the height of the line, default value is 24 fontSize is the size of the font, default value is 16 fontWeight is the weight of the font, default value is FontWeight.w600 textOverflow is the overflow of the text, default value is TextOverflow.ellipsis maxLines are the max number of lines that HMSTitleText will render after that it will overflow
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- HMSTitleText
Constructors
- HMSTitleText({Key? key, required String text, required Color textColor, double? letterSpacing = 0.5, double? lineHeight = 24, double? fontSize = 16, FontWeight? fontWeight = FontWeight.w600, TextOverflow? textOverflow = TextOverflow.ellipsis, int? maxLines})
-
const
Properties
- fontSize → double?
-
final
- fontWeight → FontWeight?
-
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?
-
final
- lineHeight → double?
-
final
- maxLines → int?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
final
- textColor → Color
-
final
- textOverflow → TextOverflow?
-
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