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