FCCFloatingBackButton constructor
const
FCCFloatingBackButton({
- Key? key,
- bool enableSwipeGesture = true,
- bool morphToCloseWhenRoot = true,
- bool disableWhenNoBack = true,
- VoidCallback? onRootPressed,
- String? tooltip,
- String? semanticLabel,
- double iconSize = 24,
- double swipeVelocityThreshold = 300.0,
- Color? backgroundColor,
- String? caption,
- bool draggable = true,
- Offset? initialPosition,
- dynamic onPositionChanged()?,
- double elevation = 6.0,
- Color? shadowColor,
- ShapeBorder? shape,
- Color? iconColor,
- double? buttonIconSize,
- double borderRadius = 16.0,
- bool savePosition = true,
- double topBlockedExtent = 120.0,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- VoidCallback? onLongPress,
- Size? minSize,
- Size? maxSize,
- bool animateMovement = true,
- 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,
});