InteractiveBodyWidget constructor
const
InteractiveBodyWidget({
- Key? key,
- String? frontAsset,
- String? backAsset,
- dynamic onMuscleSelected()?,
- VoidCallback? onSelectionCleared,
- Set<
Muscle> ? selectedMuscles, - bool initialIsFront = true,
- Color? highlightColor,
- Color? baseColor,
- double selectedStrokeWidth = 2.0,
- double unselectedStrokeWidth = 1.0,
- bool enableSelection = true,
- BoxFit fit = BoxFit.contain,
- double hitTestPadding = 10.0,
- double? width,
- double? height,
- Alignment alignment = Alignment.center,
- bool showFlipButton = true,
- bool showClearButton = true,
- PreferredSizeWidget? appBar,
- Color? backgroundColor,
- Widget selectedMusclesHeader()?,
Implementation
const InteractiveBodyWidget({
super.key,
this.frontAsset,
this.backAsset,
this.onMuscleSelected,
this.onSelectionCleared,
this.selectedMuscles,
this.initialIsFront = true,
this.highlightColor,
this.baseColor,
this.selectedStrokeWidth = 2.0,
this.unselectedStrokeWidth = 1.0,
this.enableSelection = true,
this.fit = BoxFit.contain,
this.hitTestPadding = 10.0,
this.width,
this.height,
this.alignment = Alignment.center,
this.showFlipButton = true,
this.showClearButton = true,
this.appBar,
this.backgroundColor,
this.selectedMusclesHeader,
});