GFTypography class

Inheritance

Constructors

GFTypography({Key? key, GFTypographyType type = GFTypographyType.typo4, Widget? child, String? text, Widget? icon, BorderRadius? dividerBorderRadius, Color? textColor, Alignment? dividerAlignment, Color? dividerColor, bool showDivider = true, double? dividerWidth, double? dividerHeight, ImageProvider<Object>? backgroundImage, ColorFilter? backgroundImagecolorFilter, FontWeight fontWeight = FontWeight.w500})
Creates simple title with underline. Style of title can be changed using GFTypographyType showDivider is default true, can be set false.
const

Properties

backgroundImage ImageProvider<Object>?
backgroundImage of type ImageProvider to set the background of GFTypography
final
backgroundImagecolorFilter ColorFilter?
backgroundImagecolorFilter of type ColorFilter to set the background color of GFTypography only when backgroundImage is available
final
child Widget?
child of type Widget is alternative to text key. text will get priority over child
final
dividerAlignment Alignment?
dividerAlignment of type Alignment used for aligning the divider to required alignment
final
dividerBorderRadius BorderRadius?
dividerBorderRadius of type BorderRadius to alter the radius of the divider
final
dividerColor Color?
Pass GFColors or Color for dividerColor
final
dividerHeight double?
pass double type to increase or decrease the height of the divider
final
dividerWidth double?
pass double type to increase or decrease the width of the divider
final
fontWeight FontWeight
pass FontWeight for FontWeight
final
hashCode int
The hash code for this object.
no setterinherited
icon Widget?
icon of type Widget used to pass icon or image
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
showDivider bool
Pass bool value to show or hide the divider
final
text String?
text of type String is alternative to child. text will get priority over child
final
textColor Color?
Pass GFColors or Color for textColor
final
type GFTypographyType
header type of GFTypographyType i.e, typo1, typo2, typo3, typo4, typo5, typo6
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