EzTextStyle class
Constructors
EzTextStyle ({bool inherit = true , Color ? color , Color ? backgroundColor , double ? fontSize , FontWeight ? fontWeight , FontStyle ? fontStyle , double ? letterSpacing , double wordSpacing = 1.25 , TextBaseline ? textBaseline , double height = 1.5 , TextLeadingDistribution ? leadingDistribution = TextLeadingDistribution.even , Locale ? locale , Paint ? foreground , Paint ? background , List <Shadow > ? shadows , List <FontFeature > ? fontFeatures , List <FontVariation > ? fontVariations , TextDecoration ? decoration , Color ? decorationColor , TextDecorationStyle ? decorationStyle , double ? decorationThickness , String ? debugLabel , String ? fontFamily , List <String > ? fontFamilyFallback , String ? package , TextOverflow ? overflow })
Setup a TextStyle using the fontFamilyKey from EzConfig
And some custom spacing defaults for readability
const
Methods
apply ({Color ? color , Color ? backgroundColor , TextDecoration ? decoration , Color ? decorationColor , TextDecorationStyle ? decorationStyle , double decorationThicknessFactor = 1.0 , double decorationThicknessDelta = 0.0 , String ? fontFamily , List <String > ? fontFamilyFallback , double fontSizeFactor = 1.0 , double fontSizeDelta = 0.0 , int fontWeightDelta = 0 , FontStyle ? fontStyle , double letterSpacingFactor = 1.0 , double letterSpacingDelta = 0.0 , double wordSpacingFactor = 1.0 , double wordSpacingDelta = 0.0 , double heightFactor = 1.0 , double heightDelta = 0.0 , TextBaseline ? textBaseline , TextLeadingDistribution ? leadingDistribution , Locale ? locale , List <Shadow > ? shadows , List <FontFeature > ? fontFeatures , List <FontVariation > ? fontVariations , String ? package , TextOverflow ? overflow })
→ TextStyle
Creates a copy of this text style replacing or altering the specified
properties.
inherited
compareTo (TextStyle other )
→ RenderComparison
Describe the difference between this style and another, in terms of how
much damage it will make to the rendering.
inherited
copyWith ({bool ? inherit , Color ? color , Color ? backgroundColor , double ? fontSize , FontWeight ? fontWeight , FontStyle ? fontStyle , double ? letterSpacing , double ? wordSpacing , TextBaseline ? textBaseline , double ? height , TextLeadingDistribution ? leadingDistribution , Locale ? locale , Paint ? foreground , Paint ? background , List <Shadow > ? shadows , List <FontFeature > ? fontFeatures , List <FontVariation > ? fontVariations , TextDecoration ? decoration , Color ? decorationColor , TextDecorationStyle ? decorationStyle , double ? decorationThickness , String ? debugLabel , String ? fontFamily , List <String > ? fontFamilyFallback , String ? package , TextOverflow ? overflow })
→ TextStyle
Creates a copy of this text style but with the given fields replaced with
the new values.
inherited
debugFillProperties (DiagnosticPropertiesBuilder properties , {String prefix = '' })
→ void
Adds all properties prefixing property names with the optional prefix
.
inherited
getParagraphStyle ({TextAlign ? textAlign , TextDirection ? textDirection , TextScaler textScaler = TextScaler.noScaling , String ? ellipsis , int ? maxLines , TextHeightBehavior ? textHeightBehavior , Locale ? locale , String ? fontFamily , double ? fontSize , FontWeight ? fontWeight , FontStyle ? fontStyle , double ? height , StrutStyle ? strutStyle })
→ ParagraphStyle
The style information for paragraphs, encoded for use by dart:ui
.
inherited
getTextStyle ({double textScaleFactor = 1.0 , TextScaler textScaler = TextScaler.noScaling })
→ TextStyle
The style information for text runs, encoded for use by dart:ui
.
inherited
merge (TextStyle ? other )
→ TextStyle
Returns a new text style that is a combination of this style and the given
other
style.
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
toStringShort ()
→ String
A brief description of this object, usually just the runtimeType and the
hashCode .
inherited
empathetech_flutter_ui 3.1.2