We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add leading/trailing options to RichText.
leading
trailing
RichText
Use case:
Name*
Solution:
Add:
final TextSpan trailing; // ... if (trailing != null) { children.add(trailing); } // end return Text.rich(TextSpan(children: children));
Usage:
RichText( text: 'Name', trailing: TextSpan( text: '*', //style: can be red color ), ),
The text was updated successfully, but these errors were encountered:
released in version 2.0.47 (2021-05-22)
Sorry, something went wrong.
No branches or pull requests
Add
leading
/trailing
options toRichText
.Use case:
Name*
Solution:
Add:
Usage:
The text was updated successfully, but these errors were encountered: