Benefit Text Style
data class BenefitTextStyle(val fontWeight: FontWeight? = null, val earnFontColor: Color? = null, val redeemFontColor: Color? = null)
Styling for the benefit text within Catch widgets. The benefit text displays the earned or redeemable credits to the user.
Examples:
"You earned $x"
"Redeem $x"
"Earn x% credit".
This portion of the text can be highlighted with a different text color and/or font weight. All other text attributes will be inherited from the WidgetTextStyle
.
See BenefitTextStyle.create
for apps that do not have Compose dependencies used in the primary constructor.
Constructors
Link copied to clipboard
constructor(fontWeight: FontWeight? = null, earnFontColor: Color? = null, redeemFontColor: Color? = null)
Properties
Link copied to clipboard
Configures the text color of the benefit text in the case when a user is earning credits. Example: "Earn $x credit"
Link copied to clipboard
Configures the font weight of the benefit text.
Link copied to clipboard
Configures the text color of the benefit text in the case when a user is redeeming credits. Example: "Redeem $x"