Skip to content

Commit

Permalink
feat: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-virkus committed Feb 13, 2023
1 parent 5dc7099 commit 9a5fc18
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ linter:
#- flutter_style_todos # Flutter todos are to verbose for our requirements.
- hash_and_equals
- implementation_imports
- invariant_booleans
- iterable_contains_unrelated_type
# - join_return_with_assignment # leads to less readable code IMHO
- library_names
Expand Down
3 changes: 1 addition & 2 deletions lib/src/dom/image_transformers.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'dart:convert';
import 'dart:typed_data';

import 'package:enough_mail/mime.dart';
import 'package:html/dom.dart';
Expand Down Expand Up @@ -104,7 +103,7 @@ class ImageTransformer extends DomTransformer {
if (image.width > configuration.maxImageWidth!) {
final resized =
img.copyResize(image, width: configuration.maxImageWidth);
final reducedBinary = img.encodePng(resized) as Uint8List;
final reducedBinary = img.encodePng(resized);
// print(
// 'reduced from ${binary.length} to ${reducedBinary.length} / ${reducedBinary.length / binary.length}');
binary = reducedBinary;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environment:
dependencies:
enough_mail: ^2.0.0
html: ^0.15.0
image: ^3.1.3
image: ^4.0.13

dependency_overrides:
xml: ^6.0.1
Expand Down

0 comments on commit 9a5fc18

Please sign in to comment.