FCCFloatingButton constructor
const
FCCFloatingButton({
- Key? key,
- required VoidCallback onPressed,
- required IconData icon,
- Color? backgroundColor,
- String? caption,
- bool draggable = true,
- Offset? initialPosition,
- dynamic onPositionChanged()?,
- String? tooltip,
- double elevation = 6.0,
- Color? shadowColor,
- ShapeBorder? shape,
- Color? iconColor,
- double? iconSize,
- double borderRadius = 16.0,
- bool savePosition = true,
- String? semanticLabel,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- VoidCallback? onLongPress,
- Size? minSize,
- Size? maxSize,
- bool animateMovement = true,
- String? heroTag,
Implementation
const FCCFloatingButton({
super.key,
required this.onPressed,
required this.icon,
this.backgroundColor,
this.caption,
this.draggable = true,
this.initialPosition,
this.onPositionChanged,
this.tooltip,
this.elevation = 6.0,
this.shadowColor,
this.shape,
this.iconColor,
this.iconSize,
this.borderRadius = 16.0,
this.savePosition = true,
this.semanticLabel,
this.padding,
this.margin,
this.onLongPress,
this.minSize,
this.maxSize,
this.animateMovement = true,
this.heroTag,
});