如何使图像对象抖动,以便在画布drawImageRect(..)
中使用该图像对象。
var image = Image.asset('assets/filename.png');
这不起作用。因此,如何使此图像对象能够在drawImageRect(..)方法中传递图像对象。
Canvas canvas2 = Canvas(recorder);
Paint paint2 = new Paint();
canvas2.drawImageRect(image, source, dest, paint2); // unable to make this image object