overlapList method
Do merge image list. Overlaying the images
Implementation
Future<Image> overlapList(List<Image> others) {
PictureRecorder recorder = PictureRecorder();
final paint = Paint();
Canvas canvas = Canvas(recorder);
int totalWidth = this.width;
int totalHeight = this.height;
canvas.drawImage(this, Offset.zero, paint);
others.forEach((i) {
totalWidth = max(totalWidth, i.width);
totalHeight = max(totalHeight, i.height);
canvas.drawImage(i, Offset.zero, paint);
});
return recorder.endRecording().toImage(totalWidth, totalHeight);
}