我可以知道是否有一个 flutter 包可以在照片和图纸上做标记和注释?

问题描述

注释和标记,例如添加文本、形状、绘制箭头、旋转等

解决方法

不确定您的设计意图是什么,或者是否有适合它们的插件,但我建议您使用 Stack 小部件,它允许您在 z 轴上放置多个项目(彼此重叠) ),然后将图像或绘图置于背景中,并使用 markup pluginmarkdown 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),],)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...