How to set asterisk sign in flutter with top-right corner of string?

Viewed 1104

I have an input field which is mandatory. I need to add (*) asterisk sign to with the label. For now, it is working fine but it is showing in middle along with string.

Here I have an image attached.

For now, It's showing like this. asterisk sign is in middle on text

demo

I want to make it like this. Asterisk sign in upper of the text

enter image description here

1 Answers

Something Like this

String s = "Test Coop \*";
Related