textstyle
The TextStyle has lots of properties that help to customize the text widget such as font size, colour, design, etc.
Syntax: Apply TextStyle on the Text widget
Some TextStyle Attributes:
- fontSize: It is used to change the size of text.
- color: To change color of text using color attribute in TextStyle widget.
- fontStyle: To Change text style as italic
- fontWeight: To Change text style as bold.
- decoration : decoration, decorationColor, decorationStyle. The decoration determines the location, decorationColor specify the color, decorationStyle determine the shape.