showDialogImage function
Shows an image (src
) dialog.
src
The image source.
Implementation
void showDialogImage(String src) {
var img = ImageElement()
// ignore: unsafe_html
..src = src
..style.width = '95%'
..style.height = 'auto'
..style.objectFit = 'contain';
showDialogElement(img);
}