NyText extension

Extensions for Text

on

Methods

alignCenter() Text
Aligns text to the center.
alignLeft() Text
Aligns text to the left.
alignRight() Text
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
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
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
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
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
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
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
Set the Style to use displaySmall.
fontWeightBold() Text
Make the font bold.
fontWeightLight() Text
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
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
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
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
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
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
Set the Style to use labelSmall.
paddingOnly({double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) Padding
Add padding to the text.
setFontFamily(String fontFamily) Text
Change the fontFamily.
setFontSize(double fontSize) Text
Change the fontSize.
setMaxLines(int maxLines) Text
Aligns text to the center.
setStyle(TextStyle? style) Text
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
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
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
Set the Style to use titleSmall.