fluttercandies / flutter_drawing_board

A new Flutter package of drawing board
MIT License
194 stars 68 forks source link

请教一个问题 #17

Closed IOCloudFly closed 8 months ago

IOCloudFly commented 2 years ago

比如我想在一个图片上涂鸦,想用你的库怎么把图片搞到画板上,没有思路。

Chappie74 commented 2 years ago

The DrawingBoard widget has a property called background which takes in any widget. You can use an image instead of a container.

Google translate: DrawingBoard 小部件有一个名为 background 的属性,它可以接收任何小部件。 您可以使用图像而不是容器

 DrawingBoard(
      background: Container(
        color: Colors.white,
        width: 300,
        height: 100,
      ),
    );