ThemeTextStyleExtensions extension
- on
Methods
-
darken(
[double amount = 0.1]) → TextStyle -
Darkens TextStyle.color of the text by
amount
. -
largize(
[double amount = 1]) → TextStyle -
Increase TextStyle.fontSize of the text by the amount of
amount
. -
lighten(
[double amount = 0.1]) → TextStyle -
Makes TextStyle.color of the text brighter by
amount
. -
smallize(
[double amount = 1]) → TextStyle -
Decrease TextStyle.fontSize of the text by the amount of
amount
. -
withBold(
[FontWeight fontWeight = FontWeight.bold]) → TextStyle -
Set TextStyle.fontWeight to
fontWeight
for the text. -
withColor(
Color color) → TextStyle -
Set TextStyle.color to
color
for the text. -
withOpacity(
double opacity) → TextStyle -
Set the transparency of the text's TextStyle.color to
opacity
. -
withSize(
double fontSize) → TextStyle -
Set TextStyle.fontSize to
fontSize
for the text.