问题描述
解决方法
不确定您的设计意图是什么,或者是否有适合它们的插件,但我建议您使用 Stack 小部件,它允许您在 z 轴上放置多个项目(彼此重叠) ),然后将图像或绘图置于背景中,并使用 markup plugin 或 markdown plugin 进行降价标记。
所以像;
Stack(
children: <Widget>[
Container( // Replace this container with your image.
width: 100,height: 100,color: Colors.red,),MarkupText( // Replace this text with your markup.
"This is a (b)bold(/b) text (a http://flutter.dev)with a link(/a),"
" an (u)underlined(/u) word (a http://pub.dev)with"
" a second link containing a word in (i)italics(/i)(/a) and (c #ff0000)colored(/c) words"
" (c deepPurpleAccent)here(/c) and (c green)there(/c).",style: TextStyle(fontSize: 18),],)