SpeedDial constructor
SpeedDial({
- Key? key,
- List<
SpeedDialChild> children = const [], - bool visible = true,
- Color? backgroundColor,
- Color? foregroundColor,
- Color? activeBackgroundColor,
- Color? activeForegroundColor,
- Gradient? gradient,
- BoxShape gradientBoxShape = BoxShape.rectangle,
- double elevation = 6.0,
- double buttonSize = 56.0,
- Widget? dialRoot,
- bool useInkWell = false,
- double overlayOpacity = 0.8,
- Color? overlayColor,
- String? tooltip,
- String? heroTag,
- AnimatedIconData? animatedIcon,
- IconThemeData? animatedIconTheme,
- IconData? icon,
- IconData? activeIcon,
- Widget? child,
- Widget? activeChild,
- bool useRotationAnimation = true,
- IconThemeData? iconTheme,
- Widget? label,
- Widget? activeLabel,
- Widget labelTransitionBuilder()?,
- double marginBottom = 16,
- double marginEnd = 16,
- VoidCallback? onOpen,
- VoidCallback? onClose,
- SpeedDialOrientation orientation = SpeedDialOrientation.Up,
- bool closeManually = false,
- bool renderOverlay = false,
- ShapeBorder shape = const CircleBorder(),
- Curve curve = Curves.linear,
- VoidCallback? onPress,
- int animationSpeed = 150,
- ValueNotifier<
bool> ? openCloseDial, - double childMarginBottom = 0,
- double childMarginTop = 0,
Implementation
SpeedDial({
Key? key,
this.children = const [],
this.visible = true,
this.backgroundColor,
this.foregroundColor,
this.activeBackgroundColor,
this.activeForegroundColor,
this.gradient,
this.gradientBoxShape = BoxShape.rectangle,
this.elevation = 6.0,
this.buttonSize = 56.0,
this.dialRoot,
this.useInkWell = false,
this.overlayOpacity = 0.8,
this.overlayColor,
this.tooltip,
this.heroTag,
this.animatedIcon,
this.animatedIconTheme,
this.icon,
this.activeIcon,
this.child,
this.activeChild,
this.useRotationAnimation = true,
this.iconTheme,
this.label,
this.activeLabel,
this.labelTransitionBuilder,
this.marginBottom = 16,
this.marginEnd = 16,
this.onOpen,
this.onClose,
this.orientation = SpeedDialOrientation.Up,
this.closeManually = false,
this.renderOverlay = false,
this.shape = const CircleBorder(),
this.curve = Curves.linear,
this.onPress,
this.animationSpeed = 150,
this.openCloseDial,
this.childMarginBottom = 0,
this.childMarginTop = 0,
}) : super(key: key);