如何在Flutter中使颜色成为UI文本的一部分? [英] How to make color part of a text for UI in Flutter?
本文介绍了如何在Flutter中使颜色成为UI文本的一部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何更改文本部分的颜色?
我正在尝试使文本显示为"Don't have an account? Register now!
",但我想为Register now!
部分添加颜色.如果可能的话我该怎么办?
How can I change the color of part of a text?
I'm trying to make it so the text says "Don't have an account? Register now!
" but I want to add color to the Register now!
part. How can I do this if possible?
推荐答案
使用 这篇关于如何在Flutter中使颜色成为UI文本的一部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!RichText
查看全文