【发布时间】:2021-02-18 08:31:16
【问题描述】:
注释和标记,例如添加文本、形状、绘图箭头、旋转等
【问题讨论】:
-
无法理解您的问题解释更多并添加一些代码sn-p
标签: flutter markup flutter-packages
注释和标记,例如添加文本、形状、绘图箭头、旋转等
【问题讨论】:
标签: flutter markup flutter-packages
不确定您的设计意图是什么,或者是否有适合它们的插件,但我可以建议您使用 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),
),
],
)
【讨论】: