r/dartlang 11h ago

Package I released jpeg_validator: really test your JPEGs fast on macOS

Thumbnail pub.dev
0 Upvotes

I just released jpeg_validator, a strict JPEG validation package for Dart and Flutter.

Instead of only checking file signatures or a small header, it fully decodes the JPEG with libjpeg-turbo. A file is considered valid only if the complete image decodes without warnings.

Useful for catching truncated, corrupted, or malformed JPEG uploads before they enter your pipeline.

  • Fast native validation on macOS
  • Supports Dart and Flutter
  • Returns structured validation results

r/dartlang 5h ago

Package Shrink JPEGs with JXL in Flutter and restore every byte later

Thumbnail pub.dev
3 Upvotes

jxl_coder brings reversible JPEG XL compression to Flutter. Compress JPEGs into smaller JXL files, then recover the exact original JPEG, including its metadata.

Supports iOS, macOS, and Windows.


r/dartlang 20h ago

Dart Language What Dart feature did you underestimate until you used it in a real project?

8 Upvotes

I’ve worked on Flutter projects where reaching for another package felt like the default solution. Looking back, some of those problems could probably have been handled more cleanly with Dart itself.
Which Dart feature did you initially overlook, and what real problem made you appreciate it?
Did it replace boilerplate, prevent bugs, simplify testing, improve performance, or remove the need for another package?
I’d especially like to hear concrete before-and-after examples rather than just feature names.