File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ class Exporter {
3030 }
3131 final bytesImages = < RawFrame > [];
3232 for (final frame in _frames) {
33- final bytesImage = await frame.image.toByteData (format: ui.ImageByteFormat .png);
33+ const ui.ImageByteFormat format = ui.ImageByteFormat .png;
34+ final bytesImage = await frame.image.toByteData (format: format);
3435
3536 if (frame.image.width >= _maxWidthFrame) {
3637 _maxWidthFrame = frame.image.width;
@@ -101,7 +102,10 @@ class Exporter {
101102 return newPalette;
102103 }
103104
104- static image.Image _encodeGifWIthTransparency (image.Image srcImage, {int transparencyThreshold = 1 }) {
105+ static image.Image _encodeGifWIthTransparency (
106+ image.Image srcImage, {
107+ int transparencyThreshold = 1 ,
108+ }) {
105109 var format = srcImage.format;
106110 image.Image image32;
107111 if (format != image.Format .int8) {
You can’t perform that action at this time.
0 commit comments