FuTextStyle class

Constructors

FuTextStyle()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

defaultFontWeight Map<int, FontWeight>
no setter
defaultLetterSpacing Map<ToolTextSize, double>
no setter
defaultTextSize Map<ToolTextSize, double>
no setter

Static Methods

b1({TextStyle? textStyle, int fontWeight = 500, bool muted = false, bool xMuted = false, double? letterSpacing, Color? color, TextDecoration decoration = TextDecoration.none, double? height, double wordSpacing = 0, double? fontSize}) TextStyle
b2({TextStyle? textStyle, int fontWeight = 500, bool muted = false, bool xMuted = false, double? letterSpacing, Color? color, TextDecoration decoration = TextDecoration.none, double? height, double wordSpacing = 0, double? fontSize}) TextStyle
boldTextStyle({int? size, Color? color, FontWeight? weight, String? fontFamily, double? letterSpacing, FontStyle? fontStyle, double? wordSpacing, TextDecoration? decoration, TextDecorationStyle? textDecorationStyle, TextBaseline? textBaseline, Color? decorationColor, Color? backgroundColor, double? height}) TextStyle
button({TextStyle? textStyle, int fontWeight = 500, bool muted = false, bool xMuted = false, double? letterSpacing, Color? color, TextDecoration decoration = TextDecoration.none, double? height, double wordSpacing = 0, double? fontSize}) TextStyle
caption({TextStyle? textStyle, int fontWeight = 500, bool muted = false, bool xMuted = false, double? letterSpacing = 0, Color? color, TextDecoration decoration = TextDecoration.none, double? height, double wordSpacing = 0, double? fontSize}) TextStyle
changeDefaultFontWeight(Map<int, FontWeight> defaultFontWeight) → void
changeDefaultTextSize(Map<ToolTextSize, double> defaultTextSize) → void
changeFontFamily(String fontFamily) → void
createRichText({required List<TextSpan> list, TextOverflow overflow = TextOverflow.clip, int? maxLines, TextAlign textAlign = TextAlign.left, TextDirection? textDirection, StrutStyle? strutStyle}) RichText
getStyle({TextStyle? textStyle, int fontWeight = 500, bool muted = false, bool xMuted = false, double letterSpacing = 0.15, Color? color, TextDecoration decoration = TextDecoration.none, double? height, double wordSpacing = 0, double? fontSize}) TextStyle
h1({TextStyle? textStyle, int fontWeight = 500, bool muted = false, bool xMuted = false, double? letterSpacing, Color? color, TextDecoration decoration = TextDecoration.none, double? height, double wordSpacing = 0, double? fontSize}) TextStyle
h2({TextStyle? textStyle, int fontWeight = 500, bool muted = false, bool xMuted = false, double? letterSpacing, Color? color, TextDecoration decoration = TextDecoration.none, double? height, double wordSpacing = 0, double? fontSize}) TextStyle
h3({TextStyle? textStyle, int fontWeight = 500, bool muted = false, bool xMuted = false, double? letterSpacing, Color? color, TextDecoration decoration = TextDecoration.none, double? height, double wordSpacing = 0, double? fontSize}) TextStyle
h4({TextStyle? textStyle, int fontWeight = 500, bool muted = false, bool xMuted = false, double? letterSpacing, Color? color, TextDecoration decoration = TextDecoration.none, double? height, double wordSpacing = 0, double? fontSize}) TextStyle
h5({TextStyle? textStyle, int fontWeight = 500, bool muted = false, bool xMuted = false, double? letterSpacing, Color? color, TextDecoration decoration = TextDecoration.none, double? height, double wordSpacing = 0, double? fontSize}) TextStyle
h6({TextStyle? textStyle, int fontWeight = 500, bool muted = false, bool xMuted = false, double? letterSpacing, Color? color, TextDecoration decoration = TextDecoration.none, double? height, double wordSpacing = 0, double? fontSize}) TextStyle
overline({TextStyle? textStyle, int fontWeight = 500, bool muted = false, bool xMuted = false, double? letterSpacing, Color? color, TextDecoration decoration = TextDecoration.none, double? height, double wordSpacing = 0, double? fontSize}) TextStyle
primaryTextStyle({int? size, Color? color, FontWeight? weight, String? fontFamily, double? letterSpacing, FontStyle? fontStyle, double? wordSpacing, TextDecoration? decoration, TextDecorationStyle? textDecorationStyle, TextBaseline? textBaseline, Color? decorationColor, Color? backgroundColor, double? height}) TextStyle
secondaryTextStyle({int? size, Color? color, FontWeight? weight, String? fontFamily, double? letterSpacing, FontStyle? fontStyle, double? wordSpacing, TextDecoration? decoration, TextDecorationStyle? textDecorationStyle, TextBaseline? textBaseline, Color? decorationColor, Color? backgroundColor, double? height}) TextStyle
sh1({TextStyle? textStyle, int fontWeight = 500, bool muted = false, bool xMuted = false, double? letterSpacing, Color? color, TextDecoration decoration = TextDecoration.none, double? height, double wordSpacing = 0, double? fontSize}) TextStyle
sh2({TextStyle? textStyle, int fontWeight = 500, bool muted = false, bool xMuted = false, double? letterSpacing, Color? color, TextDecoration decoration = TextDecoration.none, double? height, double wordSpacing = 0, double? fontSize}) TextStyle