bodyheatmap 1.0.0
bodyheatmap: ^1.0.0 copied to clipboard
Interactive human body heatmap widget for Flutter. Perfect for fitness, health, and medical apps to track body parts with customizable intensity visualization.
example/bodyheatmap_example.dart
import 'package:flutter/material.dart';
import 'package:bodyheatmap/bodyheatmap.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('Body Heatmap Example')),
body: Center(
child: BodyHeatmap(
selectedParts: const {
'front-head': 3,
'front-chest-left': 2,
'front-chest-right': 2,
'front-arm-left': 1,
},
baseColor: Colors.red,
width: 300,
showLegend: true,
intensityLevels: 3,
onPartTap: (part) {
print('Tapped: $part');
},
),
),
),
);
}
}