Skip to content

Commit

Permalink
style: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
tranhieu1998-it committed Oct 1, 2024
1 parent a622173 commit 27a3b4f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/src/exporter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ class Exporter {
}
final bytesImages = <RawFrame>[];
for (final frame in _frames) {
final bytesImage = await frame.image.toByteData(format: ui.ImageByteFormat.png);
const ui.ImageByteFormat format = ui.ImageByteFormat.png;
final bytesImage = await frame.image.toByteData(format: format);

if (frame.image.width >= _maxWidthFrame) {
_maxWidthFrame = frame.image.width;
Expand Down Expand Up @@ -101,7 +102,10 @@ class Exporter {
return newPalette;
}

static image.Image _encodeGifWIthTransparency(image.Image srcImage, {int transparencyThreshold = 1}) {
static image.Image _encodeGifWIthTransparency(
image.Image srcImage, {
int transparencyThreshold = 1,
}) {
var format = srcImage.format;
image.Image image32;
if (format != image.Format.int8) {
Expand Down

0 comments on commit 27a3b4f

Please sign in to comment.