FCCFloatingButton constructor

const FCCFloatingButton({
  1. Key? key,
  2. required VoidCallback onPressed,
  3. required IconData icon,
  4. Color? backgroundColor,
  5. String? caption,
  6. bool draggable = true,
  7. Offset? initialPosition,
  8. dynamic onPositionChanged(
    1. Offset
    )?,
  9. String? tooltip,
  10. double elevation = 6.0,
  11. Color? shadowColor,
  12. ShapeBorder? shape,
  13. Color? iconColor,
  14. double? iconSize,
  15. double borderRadius = 16.0,
  16. bool savePosition = true,
  17. String? semanticLabel,
  18. EdgeInsetsGeometry? padding,
  19. EdgeInsetsGeometry? margin,
  20. VoidCallback? onLongPress,
  21. Size? minSize,
  22. Size? maxSize,
  23. bool animateMovement = true,
  24. 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,
});