FloaticaActionButton constructor
FloaticaActionButton({
- required Widget icon,
- required VoidCallback onTap,
- double? size = 50,
- Color? backgroundColor,
- Color? foregroundColor,
- Object? heroTag,
- String? tooltip,
- Color? focusColor,
- Color? hoverColor,
- Color? splashColor,
- MouseCursor? mouseCursor,
- bool mini = false,
- ShapeBorder? shape,
- Clip clipBehavior = Clip.none,
- bool isExtended = false,
- FocusNode? focusNode,
- bool autofocus = false,
- MaterialTapTargetSize? materialTapTargetSize,
- bool? enableFeedback,
- double? extendedIconLabelSpacing,
- EdgeInsetsGeometry? extendedPadding,
- TextStyle? extendedTextStyle,
Creates a FloaticaActionButton with the given widget, onTap, and optional customization options for size, background color, and foreground color.
The icon can be any widget (such as Icon or Text) to provide flexibility.
Implementation
FloaticaActionButton({
required this.icon,
required this.onTap,
this.size = 50,
this.backgroundColor,
this.foregroundColor,
this.heroTag,
this.tooltip,
this.focusColor,
this.hoverColor,
this.splashColor,
this.mouseCursor,
this.mini = false,
this.shape,
this.clipBehavior = Clip.none,
this.isExtended = false,
this.focusNode,
this.autofocus = false,
this.materialTapTargetSize,
this.enableFeedback,
this.extendedIconLabelSpacing,
this.extendedPadding,
this.extendedTextStyle,
});