NyText extension

Extensions for Text

on

Methods

alignCenter() Text

Available on Text, provided by the NyText extension

Aligns text to the center.
alignLeft() Text

Available on Text, provided by the NyText extension

Aligns text to the left.
alignRight() Text

Available on Text, provided by the NyText extension

Aligns text to the right.
bodyLarge({Color? color, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<Shadow>? shadows, List<FontFeature>? fontFeatures, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? fontFamily, List<String>? fontFamilyFallback, String? package, TextOverflow? overflow, TextDecoration? overline, Color? overlineColor, TextDecorationStyle? overlineStyle, double? overlineThickness, TextDecoration? underline, Color? underlineColor, TextDecorationStyle? underlineStyle, double? underlineThickness, TextHeightBehavior? textHeightBehavior}) Text

Available on Text, provided by the NyText extension

Set the Style to use bodyLarge.
bodyMedium({Color? color, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<Shadow>? shadows, List<FontFeature>? fontFeatures, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? fontFamily, List<String>? fontFamilyFallback, String? package, TextOverflow? overflow, TextDecoration? overline, Color? overlineColor, TextDecorationStyle? overlineStyle, double? overlineThickness, TextDecoration? underline, Color? underlineColor, TextDecorationStyle? underlineStyle, double? underlineThickness, TextHeightBehavior? textHeightBehavior}) Text

Available on Text, provided by the NyText extension

Set the Style to use bodyMedium.
bodySmall({Color? color, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<Shadow>? shadows, List<FontFeature>? fontFeatures, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? fontFamily, List<String>? fontFamilyFallback, String? package, TextOverflow? overflow, TextDecoration? overline, Color? overlineColor, TextDecorationStyle? overlineStyle, double? overlineThickness, TextDecoration? underline, Color? underlineColor, TextDecorationStyle? underlineStyle, double? underlineThickness, TextHeightBehavior? textHeightBehavior}) Text

Available on Text, provided by the NyText extension

Set the Style to use bodySmall.
copyWith({Key? key, StrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection = TextDirection.ltr, Locale? locale, bool? softWrap, TextOverflow? overflow, TextScaler? textScaler, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextStyle? style}) Text

Available on Text, provided by the NyText extension

Helper to apply changes.
displayLarge({Color? color, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<Shadow>? shadows, List<FontFeature>? fontFeatures, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? fontFamily, List<String>? fontFamilyFallback, String? package, TextOverflow? overflow, TextDecoration? overline, Color? overlineColor, TextDecorationStyle? overlineStyle, double? overlineThickness, TextDecoration? underline, Color? underlineColor, TextDecorationStyle? underlineStyle, double? underlineThickness, TextHeightBehavior? textHeightBehavior}) Text

Available on Text, provided by the NyText extension

Set the Style to use displayLarge.
displayMedium({Color? color, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<Shadow>? shadows, List<FontFeature>? fontFeatures, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? fontFamily, List<String>? fontFamilyFallback, String? package, TextOverflow? overflow, TextDecoration? overline, Color? overlineColor, TextDecorationStyle? overlineStyle, double? overlineThickness, TextDecoration? underline, Color? underlineColor, TextDecorationStyle? underlineStyle, double? underlineThickness, TextHeightBehavior? textHeightBehavior}) Text

Available on Text, provided by the NyText extension

Set the Style to use displayMedium.
displaySmall({Color? color, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<Shadow>? shadows, List<FontFeature>? fontFeatures, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? fontFamily, List<String>? fontFamilyFallback, String? package, TextOverflow? overflow, TextDecoration? overline, Color? overlineColor, TextDecorationStyle? overlineStyle, double? overlineThickness, TextDecoration? underline, Color? underlineColor, TextDecorationStyle? underlineStyle, double? underlineThickness, TextHeightBehavior? textHeightBehavior}) Text

Available on Text, provided by the NyText extension

Set the Style to use displaySmall.
fontWeightBold() Text

Available on Text, provided by the NyText extension

Make the font bold.
fontWeightLight() Text

Available on Text, provided by the NyText extension

Make the font light.
headingLarge({Color? color, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<Shadow>? shadows, List<FontFeature>? fontFeatures, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? fontFamily, List<String>? fontFamilyFallback, String? package, TextOverflow? overflow, TextDecoration? overline, Color? overlineColor, TextDecorationStyle? overlineStyle, double? overlineThickness, TextDecoration? underline, Color? underlineColor, TextDecorationStyle? underlineStyle, double? underlineThickness, TextHeightBehavior? textHeightBehavior}) Text

Available on Text, provided by the NyText extension

Set the Style to use headlineLarge.
headingMedium({Color? color, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<Shadow>? shadows, List<FontFeature>? fontFeatures, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? fontFamily, List<String>? fontFamilyFallback, String? package, TextOverflow? overflow, TextDecoration? overline, Color? overlineColor, TextDecorationStyle? overlineStyle, double? overlineThickness, TextDecoration? underline, Color? underlineColor, TextDecorationStyle? underlineStyle, double? underlineThickness, TextHeightBehavior? textHeightBehavior}) Text

Available on Text, provided by the NyText extension

Set the Style to use headlineMedium.
headingSmall({Color? color, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<Shadow>? shadows, List<FontFeature>? fontFeatures, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? fontFamily, List<String>? fontFamilyFallback, String? package, TextOverflow? overflow, TextDecoration? overline, Color? overlineColor, TextDecorationStyle? overlineStyle, double? overlineThickness, TextDecoration? underline, Color? underlineColor, TextDecorationStyle? underlineStyle, double? underlineThickness, TextHeightBehavior? textHeightBehavior}) Text

Available on Text, provided by the NyText extension

Set the Style to use headlineSmall.
labelLarge({Color? color, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<Shadow>? shadows, List<FontFeature>? fontFeatures, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? fontFamily, List<String>? fontFamilyFallback, String? package, TextOverflow? overflow, TextDecoration? overline, Color? overlineColor, TextDecorationStyle? overlineStyle, double? overlineThickness, TextDecoration? underline, Color? underlineColor, TextDecorationStyle? underlineStyle, double? underlineThickness, TextHeightBehavior? textHeightBehavior}) Text

Available on Text, provided by the NyText extension

Set the Style to use labelLarge.
labelMedium({Color? color, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<Shadow>? shadows, List<FontFeature>? fontFeatures, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? fontFamily, List<String>? fontFamilyFallback, String? package, TextOverflow? overflow, TextDecoration? overline, Color? overlineColor, TextDecorationStyle? overlineStyle, double? overlineThickness, TextDecoration? underline, Color? underlineColor, TextDecorationStyle? underlineStyle, double? underlineThickness, TextHeightBehavior? textHeightBehavior}) Text

Available on Text, provided by the NyText extension

Set the Style to use labelMedium.
labelSmall({Color? color, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<Shadow>? shadows, List<FontFeature>? fontFeatures, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? fontFamily, List<String>? fontFamilyFallback, String? package, TextOverflow? overflow, TextDecoration? overline, Color? overlineColor, TextDecorationStyle? overlineStyle, double? overlineThickness, TextDecoration? underline, Color? underlineColor, TextDecorationStyle? underlineStyle, double? underlineThickness, TextHeightBehavior? textHeightBehavior}) Text

Available on Text, provided by the NyText extension

Set the Style to use labelSmall.
paddingOnly({double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) Padding

Available on Text, provided by the NyText extension

Add padding to the text.
setFontFamily(String fontFamily) Text

Available on Text, provided by the NyText extension

Change the fontFamily.
setFontSize(double fontSize) Text

Available on Text, provided by the NyText extension

Change the fontSize.
setMaxLines(int maxLines) Text

Available on Text, provided by the NyText extension

Aligns text to the center.
setStyle(TextStyle? style) Text

Available on Text, provided by the NyText extension

Change the style.
titleLarge({Color? color, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<Shadow>? shadows, List<FontFeature>? fontFeatures, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? fontFamily, List<String>? fontFamilyFallback, String? package, TextOverflow? overflow, TextDecoration? overline, Color? overlineColor, TextDecorationStyle? overlineStyle, double? overlineThickness, TextDecoration? underline, Color? underlineColor, TextDecorationStyle? underlineStyle, double? underlineThickness, TextHeightBehavior? textHeightBehavior}) Text

Available on Text, provided by the NyText extension

Set the Style to use titleLarge.
titleMedium({Color? color, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<Shadow>? shadows, List<FontFeature>? fontFeatures, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? fontFamily, List<String>? fontFamilyFallback, String? package, TextOverflow? overflow, TextDecoration? overline, Color? overlineColor, TextDecorationStyle? overlineStyle, double? overlineThickness, TextDecoration? underline, Color? underlineColor, TextDecorationStyle? underlineStyle, double? underlineThickness, TextHeightBehavior? textHeightBehavior}) Text

Available on Text, provided by the NyText extension

Set the Style to use titleMedium.
titleSmall({Color? color, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<Shadow>? shadows, List<FontFeature>? fontFeatures, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? fontFamily, List<String>? fontFamilyFallback, String? package, TextOverflow? overflow, TextDecoration? overline, Color? overlineColor, TextDecorationStyle? overlineStyle, double? overlineThickness, TextDecoration? underline, Color? underlineColor, TextDecorationStyle? underlineStyle, double? underlineThickness, TextHeightBehavior? textHeightBehavior}) Text

Available on Text, provided by the NyText extension

Set the Style to use titleSmall.