简体   繁体   中英

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

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

演示

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

在此处输入图像描述

Something Like this

String s = "Test Coop \*";

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM