flutter_body_atlas
0.2.3, released 5 weeks ago by heart-of.me
An interactive SVG-based human body and muscle atlas widget for Flutter.
WASM-ready
What it does
Renders high-fidelity anatomical diagrams of the human musculoskeletal system with built-in support for hit testing, dynamic coloring, and custom integrations. It allows developers to handle taps and hovers on specific muscles or groups using stable IDs.
AI-written summary of version 0.2.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- Building fitness or workout tracking apps
- Creating medical visualizations and educational anatomy tools
Skip it when
- Needing non-muscle anatomical layers like skeletal, organ systems, or skin which are currently on the roadmap
- Needing a non-SVG anatomical rendering solution
Strengths
- Stable public contract for SVG element IDs across versions
- Built-in support for mouse hover on desktop/web and touch interactions on mobile
- Aggregate ID support for parts of muscles like digitations
Weaknesses
- Currently focused only on muscles, lacking organ systems, skin, and bones
- Overlapping paths may require fine-tuning for hit-testing
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Requires proper attribution to Ryan Graves under the CC BY 4.0 license when displaying the assets.
BodyAtlasView<MuscleInfo>(
view: AtlasAsset.musclesFront,
resolver: const MuscleResolver(),
colorMapping: {
MuscleCatalog.byIdOrThrow('biceps_brachii_caput_longum_l'): Colors.orange,
},
onTapElement: (muscle) {
print('Tapped on: ${muscle.displayName}');
},
)Works with
Packages commonly used together with flutter_body_atlas: ones it builds on, ones built on it, and its own family.
- xmlflutter_body_atlas depends on itFull-featured XML and XPath library for DOM parsing, SAX streaming, and fluent building.
- flutter_svgflutter_body_atlas depends on itRenders Scalable Vector Graphics (SVG 1.1) and precompiled vector graphics in Flutter.
- path_drawingflutter_body_atlas depends on itA Flutter library to help with Canvas Path creation and manipulation.