For android platform, In the custom project, by using the screenshot method, generate Uint8List data from the widget, call the ImageGallerySaver. saveImage method, and save it to the mobile gallery. It is found that the width of the displayed image always occupies the entire width of the gallery. If the screenshot produces an image without a background, then in the image gallery, if the actual content of the image is not fully covered, the background is black.
For android platform, In the custom project, by using the screenshot method, generate Uint8List data from the widget, call the ImageGallerySaver. saveImage method, and save it to the mobile gallery. It is found that the width of the displayed image always occupies the entire width of the gallery. If the screenshot produces an image without a background, then in the image gallery, if the actual content of the image is not fully covered, the background is black.