From 1fdb79b410c3e261cfef36acf1f84e8c8172cedd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyanghuaxuan=E2=80=9D?= <“646903573@qq.com”> Date: Wed, 14 Apr 2021 22:11:11 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=B0=83=E6=95=B4=E5=88=86=E4=BA=AB=E7=9A=84?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/widgets/share/share_alert_select.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/share/share_alert_select.dart b/lib/widgets/share/share_alert_select.dart index 754b42a..bb12631 100644 --- a/lib/widgets/share/share_alert_select.dart +++ b/lib/widgets/share/share_alert_select.dart @@ -112,7 +112,7 @@ class _ShareAlertSelectState extends State { RenderRepaintBoundary boundary = buildContext.findRenderObject(); ///pixelRatio是放大倍数 - ui.Image image = await boundary.toImage(pixelRatio: 5); + ui.Image image = await boundary.toImage(pixelRatio: 3); // 注意:png是压缩后格式,如果需要图片的原始像素数据,请使用rawRgba ByteData byteData = await image.toByteData(format: ui.ImageByteFormat.png); Uint8List pngBytes = byteData.buffer.asUint8List();