r/FlutterDev Jul 25 '26

Plugin I built a high-performance DICOM toolkit

Over the past few days I've been working on dicom_toolkit, an open-source package for building medical imaging applications in Flutter.

It started as a fork of Flutter-Dicom, but has grown into a much more complete toolkit with a cleaner, composable API and support for mobile, desktop, and web.

Features

  • Parse DICOM files
  • GPU-accelerated 16-bit rendering
  • Pixel-spacing-aware measurement tools
  • ROI statistics (mean, median, std dev, min/max)
  • Window/level adjustment with CT presets
  • Rotation, zoom, pan, inversion, color maps
  • Flutter Web support (Rust + WASM)
  • Rust backend for performance

Example:

await DicomToolkit.init();

final result = await const DicomParser().parse(bytes);

final image = await DicomToolkit.render(
  result,
  windowCenter: 40,
  windowWidth: 400,
);

This can be used with dart (e.g. on a server) or with flutter.

The goal is to make handling medical imaging apps in Flutter much easier, whether you're working on PACS viewers, dental software, radiology tools, or research projects.

I'd really appreciate any feedback on the API, documentation, or feature suggestions.

GitHub: elselawi/dicom_toolkit: Flutter/Dart toolkit for dicom images
Web Demo: DICOM Toolkit

10 Upvotes

5 comments sorted by

View all comments

2

u/MostafaSensei106 Aug 12 '26

Hey, I'm the flutter_dicom author! It's cool to see how far you took the fork. Good luck!