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

702

Something Like this

String s = "Test Coop \*";
Share:
702
Parth Bhatti
Author by

Parth Bhatti

Updated on December 22, 2022

Comments

  • Parth Bhatti
    Parth Bhatti over 1 year

    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