問題描述
我可以知道是否有一個顫振包可以在照片和圖紙上做標記和註釋? (May I know is there a flutter package to do markups and annotations on photos and drawings?)
註釋和標記,例如添加文本、形狀、繪圖箭頭、旋轉等
參考解法
方法 1:
Not sure about what your design intentions are or if there is a plugin to fit them but I can recommend you use a Stack widget which allows you to place multiple items on the z axis (on top of each other) and then place the image or drawing in the background and overlay your markup using the markup plugin or markdown plugin for markdown.
So something like;
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),
),
],
)
(by Dikshita Chandrasekaran、Ike Mawira)