<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/aba6c7ac2675d077fc076a38bec8a9af4479cf0bebeb090ce682366884e30ea7/68747470733a2f2f73312e617832782e636f6d2f323031382f31322f31322f355164566b472e706e67"><img src="https://camo.githubusercontent.com/aba6c7ac2675d077fc076a38bec8a9af4479cf0bebeb090ce682366884e30ea7/68747470733a2f2f73312e617832782e636f6d2f323031382f31322f31322f355164566b472e706e67" alt="The effect I want is this" data-canonical-src="https://s1.ax2x.com/2018/12/12/5QdVkG.png" style="max-width: 100%;"></a></p>
<p dir="auto">Can you give me some suggestions?<br>
Thank you very much!</p>
<p dir="auto">Android's <code class="notranslate">EditText</code> and <code class="notranslate">TextView</code> both support rich text spans.<br>
But in Flutter, only <code class="notranslate">RichText</code> widget support rich text spans.<br>
<code class="notranslate">TextField</code> should support rich text spans natively using <code class="notranslate">TextSpan</code>.</p>
<p dir="auto">Android example of using text span in edit text component:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3154529/40371551-51f279c2-5e00-11e8-9e0e-f923af4b4ecb.png"><img src="https://user-images.githubusercontent.com/3154529/40371551-51f279c2-5e00-11e8-9e0e-f923af4b4ecb.png" alt="image" style="max-width: 100%;"></a></p>