atoms/text/text library
Classes
- FontSizeDevice
- The device
- ZwapGradientText
- ZwapGradientTextSpan
- Gradient test spans supports only the onTap gesture
- ZwapRichText
- Component to rendering multi text style
- ZwapText
- Component to rendering text in base of style and device type
- ZwapTextSpan
- ZwapTranslation
Enums
Functions
-
getTextSize(
String text, ZwapTextType textType, {double? maxWidth}) → Size - It plots the text size in base of the current style and current chars
-
getTextSizeFromCustomStyle(
String text, TextStyle textStyle, {double? maxWidth}) → Size -
getTextStyle(
ZwapTextType typeText) → TextStyle - It returns the text style in base of the different text type
-
textWidth(
String text, TextStyle style, {TextAlign textAlign = TextAlign.left}) → double - Return the minWidth occupied by text in a single line