FCCFloatingBackButton constructor

const FCCFloatingBackButton({
  1. Key? key,
  2. bool enableSwipeGesture = true,
  3. bool morphToCloseWhenRoot = true,
  4. bool disableWhenNoBack = true,
  5. VoidCallback? onRootPressed,
  6. String? tooltip,
  7. String? semanticLabel,
  8. double iconSize = 24,
  9. double swipeVelocityThreshold = 300.0,
  10. Color? backgroundColor,
  11. String? caption,
  12. bool draggable = true,
  13. Offset? initialPosition,
  14. dynamic onPositionChanged(
    1. Offset
    )?,
  15. double elevation = 6.0,
  16. Color? shadowColor,
  17. ShapeBorder? shape,
  18. Color? iconColor,
  19. double? buttonIconSize,
  20. double borderRadius = 16.0,
  21. bool savePosition = true,
  22. double topBlockedExtent = 120.0,
  23. EdgeInsetsGeometry? padding,
  24. EdgeInsetsGeometry? margin,
  25. VoidCallback? onLongPress,
  26. Size? minSize,
  27. Size? maxSize,
  28. bool animateMovement = true,
  29. String? heroTag,
})

Implementation

const FCCFloatingBackButton({
  super.key,
  // Back behavior
  this.enableSwipeGesture = true,
  this.morphToCloseWhenRoot = true,
  this.disableWhenNoBack = true,
  this.onRootPressed,

  // UX text
  this.tooltip,
  this.semanticLabel,

  // Icon
  this.iconSize = 24,
  this.swipeVelocityThreshold = 300.0,

  // FCCFloatingButton config
  this.backgroundColor,
  this.caption,
  this.draggable = true,
  this.initialPosition,
  this.onPositionChanged,
  this.elevation = 6.0,
  this.shadowColor,
  this.shape,
  this.iconColor,
  this.buttonIconSize,
  this.borderRadius = 16.0,
  this.savePosition = true,
  this.topBlockedExtent = 120.0,
  this.padding,
  this.margin,
  this.onLongPress,
  this.minSize,
  this.maxSize,
  this.animateMovement = true,
  this.heroTag,
});